AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2022.05.21 19:37 "[Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia
2022.05.21 20:21 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by Kemp Watson
2022.05.21 20:29 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia
2022.05.21 20:37 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by Toby Thain
2022.05.22 14:20 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by Miguel Medalha
2022.05.22 14:20 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia
2022.06.10 19:29 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia
2022.06.10 19:44 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by Even Rouault
2022.06.10 19:47 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia
2022.06.10 20:37 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by Bob Friesenhahn
2022.06.16 16:37 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia
2022.06.11 07:23 "Re: [Tiff] How to read JPEG-compressed YCbCr TIFFs", by Joris Van Damme

2022.05.21 19:37 "[Tiff] How to read JPEG-compressed YCbCr TIFFs", by L. E. Segovia

Hi all,

Recently one of my colleagues at Krita found an abandoned TIFF in our source code repository that, to the best of our knowledge, had never been checked into our test suite.

Turns out, it is a JPEG-compressed, YCbCr TIFF. I've recently added color space profiles for YCbCr, but when loading this sample inside our app, the output shows significant corruption as well as misaligned strips.

I've tried the tiff2rgba and rgba2ycbcr tools to generate copies, and can confirm that:

which leads me to conclude that the expected layout of YCbCr + JPEG doesn't match what it says on the tin ("Ordering of Component Samples", page 93 of the standard). Unfortunately, I can't verify my suspicions with libtiff's source code itself, as in all cases, either the data is already in RGB form or libjpeg-turbo is asked to convert it to RGB.

Does anyone know what the layout of this kind of data is? Or, alternatively, where I could start looking?

Best,

amyspark

amyspark 🌸 https://www.amyspark.me