ImageMagick6 icon indicating copy to clipboard operation
ImageMagick6 copied to clipboard

TIFF output does not preserve input depth

Open luyatshimbalanga opened this issue 3 years ago • 2 comments

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

luyatshimbalanga avatar Jul 03 '22 21:07 luyatshimbalanga

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 avatar Jul 03 '22 23:07 urban-warrior

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

sergiomb2 avatar May 29 '23 20:05 sergiomb2