identify confuses the image numbering with more than 2 images 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

identify confuses the image numbering with more than 2 images 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

With two images it lists the image sequence as: 0,1,2,3

Code: Select all

identify mickey.psd mickey_ps.tif
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
mickey_ps.tif[2] TIFF 300x300 300x300+0+0 8-bit sRGB 492KB 0.000u 0:00.000
mickey_ps.tif[3] TIFF 250x250 250x250+25+25 8-bit sRGB 0.000u 0:00.000


With 3 images it lists the image sequence as: 0,1,2,3,4,1 rather than 0,1,2,3,4,5
identify mickey.psd mickey_ps.tif mickey_im.tif
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
mickey_ps.tif[2] TIFF 300x300 300x300+0+0 8-bit sRGB 492KB 0.000u 0:00.000
mickey_ps.tif[3] TIFF 250x250 250x250+25+25 8-bit sRGB 0.000u 0:00.000
mickey_im.tif[4] 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: identify confuses the image numbering with more than 2 images IM 6.9.2.3 Q16 Mac OSX

Post by dlemstra »

We will no longer confuse you in the next release of ImageMagick (6.9.2-4). The output will be this:

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
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
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
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify confuses the image numbering with more than 2 images IM 6.9.2.3 Q16 Mac OSX

Post by fmw42 »

That makes more sense to me. Thanks.
Post Reply