Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24-bit floating point TIFF doesn't load properly #1842

Closed
jonsneyers opened this issue Feb 4, 2020 · 1 comment
Closed

24-bit floating point TIFF doesn't load properly #1842

jonsneyers opened this issue Feb 4, 2020 · 1 comment

Comments

@jonsneyers
Copy link
Contributor

Description

TIFF files containing 24-bit FP data are loaded incorrectly – it looks like the data is interpreted as 32-bit FP, causing the left 3/4 of the image to be a garbled version of the actual image, and the right 1/4 to be empty (black).

Steps to Reproduce

This zip file contains a TIFF which was created with Photoshop, saved as 24-bit FP.
Photoshop does produce a warning when selecting that option: "Not all TIFF readers support 24 bit floating point values. Use 24 bit values?"
test.zip

Converting it to PNG using convert produces the following:
test-24bit tif

While it should look like this:
test-16bit tif
(this is what convert produces when the input is a 16-bit half-float TIFF)

System Configuration

This was tested on a stock IM 6, but I don't think newer versions (e.g. IM 7) will behave differently.

  • ImageMagick version: 6.9.10-14 Q16 x86_64 20181023
  • Environment (Operating system, version and so on): Ubuntu
@urban-warrior
Copy link
Member

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick in a few days. The patch will also be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants