bioformats icon indicating copy to clipboard operation
bioformats copied to clipboard

Photoshop TIFF not recognised and incorrect YCbCr handling

Open dgault opened this issue 4 years ago • 1 comments
trafficstars

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

dgault avatar Jun 28 '21 14:06 dgault

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

imagesc-bot avatar Jun 28 '21 14:06 imagesc-bot