SixLabors / ImageSharp

:camera: A modern, cross-platform, 2D Graphics library for .NET
https://sixlabors.com/products/imagesharp/
Other
7.34k stars 847 forks source link

Tiff decoder: Fix issue 2679 #2789

Closed brianpopow closed 1 month ago

brianpopow commented 1 month ago

Prerequisites

Description

This MR fixes issue #2679 with decoding TIFF images with Jpeg compression. This PR will set subsampling to 1:1 for jpeg compression, the jpeg decoder will handler subsampling, see discussion: https://github.com/SixLabors/ImageSharp/issues/2679

Note that this will only be done for JpegCompression not OldJpegCompression. I am not sure, if we should do it for both.