cannot compare PS TIF with IM TIF IM 6.9.2.3 Q16 Mac OSX

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

cannot compare PS TIF with IM TIF IM 6.9.2.3 Q16 Mac OSX

Post by fmw42 »

I have this 250x250 original transparent PNG:

Image


I opened it in Photoshop and copied it to a larger size (300x300) transparent background and saved it as PSD and then as TIF in Photoshop. I also saved the PSD to TIF in Imagemagick:

http://www.fmwconcepts.com/misc_tests/t ... mickey.psd

http://www.fmwconcepts.com/misc_tests/t ... key_ps.tif

http://www.fmwconcepts.com/misc_tests/t ... key_im.tif

Code: Select all

identify mickey.psd
mickey.psd[0] PSD 300x300 300x300+0+0 8-bit sRGB 248KB 0.000u 0:00.000
mickey.psd[1] PSD 250x250 250x250+25+25 8-bit sRGB 248KB 0.000u 0:00.000

Code: Select all

identify mickey_ps.tif
mickey_ps.tif[0] TIFF 300x300 300x300+0+0 8-bit sRGB 492KB 0.000u 0:00.000
mickey_ps.tif[1] TIFF 250x250 250x250+25+25 8-bit sRGB 0.000u 0:00.000

Code: Select all

identify mickey_im.tif
mickey_im.tif[0] TIFF 300x300 300x300+0+0 8-bit sRGB 674KB 0.000u 0:00.000
mickey_im.tif[1] TIFF 250x250 250x250+25+25 8-bit sRGB 674KB 0.000u 0:00.000

All the above have 2 layers.

Now I try to compare each layer of the two tif files.

Code: Select all

compare -metric rmse mickey_ps.tif[0] mickey_im.tif[0] null:
1479.38 (0.022574)

Code: Select all

compare -metric rmse mickey_ps.tif[1] mickey_im.tif[1] null:
compare: missing an image filename `mickey_im.tif[1]' @ error/compare.c/CompareImageCommand/957.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: cannot compare PS TIF with IM TIF IM 6.9.2.3 Q16 Mac OSX

Post by dlemstra »

This is the caused by the same bug as reported in this one: viewtopic.php?f=3&t=28469. It will be fixed in the next version of ImageMagick (6.9.2-4)

Code: Select all

compare -metric rmse mickey_ps.tif[1] mickey_im.tif[1] null:
0 (0)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply