bioformats
bioformats copied to clipboard
Photoshop TIFF not recognised and incorrect YCbCr handling
Issue was raised on forum thread https://forum.image.sc/t/corrupted-output-saving-png-tile/54301/2 and a sample file has been provided reproducing the issue.
The current file should be read by the PhotoshopTiffReader (Software: Adobe Photoshop CS5.1 Windows) but instead opens as a standard Tiff.
The PhotometricInterpretation tag is as below and YCbCr correction is being applied at bioformats/TiffParser.java at https://github.com/ome/bioformats/blob/b68a64959b9f17ceb6b9cb57c15d7b46b56f23ed/components/formats-bsd/src/loci/formats/tiff/TiffParser.java#L827-L829. With this correction enabled the resulting image displays with a pink colour. Disabling this correction would allow the image to open correctly.
Photometric Interpretation: YCbCr
YCbCr Subsampling: 1, 1
YCbCr Positioning: cosited
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/corrupted-output-saving-png-tile/54301/4