Identical PNGs compare says all colors are different

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
craftkiller
Posts: 3
Joined: 2014-08-07T18:10:02-07:00
Authentication code: 6789

Identical PNGs compare says all colors are different

Post by craftkiller »

Code: Select all

$ compare -metric rmse "/home/talexander/.vdiff_out/2014_08_08_00_55_40/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png" "/home/talexander/.vdiff_out/2014_08_08_00_48_59/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png" ~/out.png
20644.7 (0.315019)%                                                             [talexander@tafront:~]$ md5sum "/home/talexander/.vdiff_out/2014_08_08_00_55_40/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png" "/home/talexander/.vdiff_out/2014_08_08_00_48_59/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png"
aa26bc68251f37735759cc7cac184cde  /home/talexander/.vdiff_out/2014_08_08_00_55_40/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png
aa26bc68251f37735759cc7cac184cde  /home/talexander/.vdiff_out/2014_08_08_00_48_59/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png
I've uploaded the images I was using to http://static.paphus.com/bug_report/ima ... ems.tar.xz

Code: Select all

$ compare --version                         (08-07 18:15)
Version: ImageMagick 6.8.9-6 Q16 x86_64 2014-07-28 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC HDRI Modules OpenCL OpenMP
Delegates: bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma pangocairo png ps rsvg tiff webp wmf x xml zlib
Interestingly enough I'm not getting the issue on a machine with this version:

Code: Select all

$ compare --version
Version: ImageMagick 6.6.0-4 2012-05-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP 
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Identical PNGs compare says all colors are different

Post by fmw42 »

Your upload does not contain the two input images, only the output. We would need the two input images to do our own tests.
craftkiller
Posts: 3
Joined: 2014-08-07T18:10:02-07:00
Authentication code: 6789

Re: Identical PNGs compare says all colors are different

Post by craftkiller »

think I figured it out, does imagemagick do its own globbing outside the shell?
craftkiller
Posts: 3
Joined: 2014-08-07T18:10:02-07:00
Authentication code: 6789

Re: Identical PNGs compare says all colors are different

Post by craftkiller »

It contains all 3 images

Code: Select all

curl "http://static.paphus.com/bug_report/imagemagick/problems.tar.xz" | tar -tJ
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25944  100 25944    0     0  82220      0 --:--:-- --:--:-- --:--:-- 82361
home/talexander/.vdiff_out/2014_08_08_00_55_40/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png
home/talexander/.vdiff_out/2014_08_08_00_48_59/*3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png
home/talexander/out.png
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Identical PNGs compare says all colors are different

Post by fmw42 »

I have downloaded and opened your "home" folder twice now and all I see is out.png in a folder called talexander.

Your filenames such as *3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=.png

are very strange with * and =. Perhaps that is a problem. IM may be seeing the * as a wildcard. See http://www.imagemagick.org/Usage/files/#read

You have a hidden folder in there that starts with a period (.vdiff_out). If you remove the period, then it won't be hidden to everyone, at least not on Unix.

On my IM 6.8.9.6 Q16 Mac OSX, I get a perfect comparison (I renamed the two files with 1 and 2)

Code: Select all

compare -metric rmse *3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=1.png *3ZLiByTFqbVIKd5tkq7jDHs0gGLidSqAsDIO3fzvkY=2.png null:
0 (0)
Post Reply