ImageMagick / ImageMagick6

🧙‍♂️ ImageMagick 6
https://legacy.imagemagick.org
Other
195 stars 82 forks source link

Converting .tif files result in distorted image #333

Open wbukiewicz opened 1 month ago

wbukiewicz commented 1 month ago

ImageMagick version

6.9.13-13

Operating system

Linux

Operating system, version and so on

Centos 7

Description

After update from 6.9.12-24 to 6.9.13-13 converting .tif files result in distorted image. Distorted image: result

Steps to Reproduce

If you use the image original.tif from the images.zip attachment, the conversion error should occur. convert -verbose original.tif[0] result.png

original.tif[0]=>original.tif TIFF 500x500 500x500+0+0 8-bit TrueColor sRGB 1.19234MiB 0.000u 0:00.005 original.tif[0]=>result.png TIFF 500x500 500x500+0+0 8-bit sRGB 338041B 0.180u 0:00.174

Images

images.zip

dlemstra commented 1 month ago

Cannot be reproduced in IM7 but is broken in IM6. We are probably missing a patch, investigating this now. It looks like this is related to an incorrect pad value when reading extra channels.