ImageMagick6 icon indicating copy to clipboard operation
ImageMagick6 copied to clipboard

regression when comparing images with alpha to image without alpha with -alpha off

Open josch opened this issue 8 months ago • 2 comments

ImageMagick version

6.9.12-84-33-gd49d6b227

Operating system

Linux

Operating system, version and so on

Debian bookworm

Description

When comparing attached images before commit d49d6b227a128aa0f9b4b0f2e2c697d44ac6dc65, they compared as equal. Starting with commit d49d6b227a128aa0f9b4b0f2e2c697d44ac6dc65, they appear as different. Bug or feature?

Steps to Reproduce

compare -metric AE -alpha off working.orig.jpg working.gs.png null:

Images

working orig working gs

josch avatar Oct 30 '23 07:10 josch

We get a "Not a JPEG file" for the working original. Resolve this issue so we can reproduce the issue in our local environment.

urban-warrior avatar Nov 03 '23 14:11 urban-warrior

$ identify working.orig.jpg
working.orig.jpg JP2 60x60 60x60+0+0 8-bit sRGB 0.000u 0:00.001
$ file --mime working.orig.jpg
working.orig.jpg: image/jp2; charset=binary
$ file working.orig.jpg
working.orig.jpg: JPEG 2000 Part 1 (JP2)

I downloaded the version from this issue. md5sum should be 8e824e6e06227579ae0055eb392ca91c All tools above say that it's of jpeg type.

josch avatar Nov 03 '23 19:11 josch