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

TIFF output does not preserve input depth #188

Open
luyatshimbalanga opened this issue Jul 3, 2022 · 2 comments
Open

TIFF output does not preserve input depth #188

luyatshimbalanga opened this issue Jul 3, 2022 · 2 comments

Comments

@luyatshimbalanga
Copy link

ImageMagick version

6.9.12-52

Operating system

Linux

Operating system, version and so on

Fedora 36

Description

The conversion from png to tiff failed to preserve the image depth.
The original report is from Red Hat Bugzilla dating from 2016.

Steps to Reproduce

convert in.png out.tiff
 file in.png 
in.png: PNG image data, 157 x 196, 1-bit grayscale, non-interlaced
file out.tiff 
out.tiff: TIFF image data, little-endian, direntries=17, height=196, bps=8, compression=deflate, PhotometricIntepretation=BlackIsZero, orientation=upper-left, width=157

Images

Referenced image
in

@urban-warrior
Copy link
Contributor

Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT main branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://imagemagick.org/download/beta/ by sometime tomorrow.

urban-warrior pushed a commit to ImageMagick/ImageMagick that referenced this issue Jul 3, 2022
urban-warrior pushed a commit that referenced this issue Jul 3, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Jul 31, 2022
https://build.opensuse.org/request/show/991214
by user pgajdos + favogt_factory
- version update to 7.1.0.44
  upstream changelog:
  https://github.com/ImageMagick/Website/blob/main/ChangeLog.md
- modified patches
  % ImageMagick-library-installable-in-parallel.patch (refreshed)

- update to 7.1.0.42:
  * incorrect pointer update when computing median @ ImageMagick/ImageMagick#5298
  * Added extra check because the flag was removed in 0.21-Beta1.
  * the -transparent-color option accepts colornames @ ImageMagick/ImageMagick#5297
  * fix MVG stroke-opacity issues
  * map channel parameter to pixel channel offset @ ImageMagick/ImageMagick#5308
  * beta release
  * preserve input depth @ ImageMagick/ImageMagick6#188
  * update to latest automake/autoconf release
  * recognize SVG file if it starts with whitespace @ ImageMagick/ImageMagick#5294
  * Removed unused stealth f
@sergiomb2
Copy link

from https://bugzilla.redhat.com/show_bug.cgi?id=1378891#c44

This seems to be fixed everywhere now. Unless "file" tool lies. Tested with:

ImageMagick-7.1.0.62-1.fc39.x86_64
ImageMagick-7.1.0.57-4.fc38.x86_64
ImageMagick-6.9.12.77-1.fc37.x86_64
ImageMagick-6.9.12.77-1.fc36.x86_64

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