I found an issue with decoding some YCbCr. For example the following images are attached as zip:
flower-ycbcr.zip
The output looks like this:
The issue is that the image will be padded when the width or height is not a multiple of the subsampling according to TIFF Technical Note #2. At the very bottom of the text:
If ImageWidth and ImageLength are not multiples of
If ImageWidth and ImageLength are not multiples of
ChromaSubsampleHoriz and ChromaSubsampleVert respectively, then the
source data shall be padded to the next integer multiple of these
values before downsampling.
This TiffReverseChromaSubsampling8Middleware.cs file needs to be changed and padding added to width and height. Unfortunately i dont know the codebase good enough to provide a PR.
I found an issue with decoding some YCbCr. For example the following images are attached as zip: flower-ycbcr.zip
The output looks like this:![output](https://user-images.githubusercontent.com/38701097/128734959-0b9460fc-c39c-4508-b18c-dbe6dc128f33.png)
The issue is that the image will be padded when the width or height is not a multiple of the subsampling according to TIFF Technical Note #2. At the very bottom of the text:
This TiffReverseChromaSubsampling8Middleware.cs file needs to be changed and padding added to width and height. Unfortunately i dont know the codebase good enough to provide a PR.