Browse Source

Also set color type to rgb, when compression is jpeg

pull/2124/head
Brian Popow 4 years ago
parent
commit
58927f327b
  1. 3
      src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs

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

@ -462,8 +462,9 @@ namespace SixLabors.ImageSharp.Formats.Tiff
if (options.PhotometricInterpretation is TiffPhotometricInterpretation.YCbCr && options.JpegTables is null)
{
// Note: Setting PhotometricInterpretation to RGB here, since the jpeg decoder will handle the conversion of the pixel data.
// Note: Setting PhotometricInterpretation and color type to RGB here, since the jpeg decoder will handle the conversion of the pixel data.
options.PhotometricInterpretation = TiffPhotometricInterpretation.Rgb;
options.ColorType = TiffColorType.Rgb;
}
break;

Loading…
Cancel
Save