It doesn't complain, the file can be successfully opened because it's been converted to RGB:

> outfile.tif: TIFF image data, little-endian, direntries=14, height=384, bps=198, compression=none, PhotometricIntepretation=RGB, orientation=upper-left, width=512

I do can trigger various types of visual "corruption" with this tool, see this album: https://imgur.com/a/CjDv9X0 This is what Krita displays at present, I suppose everyone else displays the file correctly because they ask for a conversion to RGBA.

amyspark

On 22/05/2022 05:40, miguel medalha wrote:
What does 'tiffcp -c none infile.tif outfile.tif' produce?

21 May 2022 20:37:30 L. E. Segovia via Tiff <[email protected]>:

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:

- Loading YCbCr TIFFs with anything but JPEG compression works.
- Loading RGBA TIFFs with any compression, including JPEG, works.

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
_______________________________________________
Tiff mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/tiff

--
amyspark 🌸 https://www.amyspark.me
_______________________________________________
Tiff mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/tiff

Reply via email to