Browse Source

assert not supported ink names

pull/2363/head
Ildar Khayrutdinov 3 years ago
parent
commit
561c5d82a7
  1. 5
      src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs

5
src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs

@ -509,6 +509,11 @@ internal static class TiffDecoderOptionsParser
TiffThrowHelper.ThrowNotSupported("Only 8 bits per channel is supported for CMYK images.");
}
if (exifProfile.GetValueInternal(ExifTag.InkNames) is not null)
{
TiffThrowHelper.ThrowNotSupported("The custom ink name strings are not supported for CMYK images.");
}
options.ColorType = TiffColorType.Cmyk;
break;
}

Loading…
Cancel
Save