identify with multiple images

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

identify with multiple images

Post by snibgo »

This follows a thread in Users: viewtopic.php?f=1&t=26809

The behaviour for "identify" changed between 6.8.0-0 and 6.8.9-0. The effect of the change is such that if the format string contains %n (the number of images), the rest of the format string is no longer repeated, once per image. I think this new behaviour is a bug.

This new behaviour applies to "identify" but not "convert -ping" (in 6.8.9-0 and 6.9.0-0). This still gives the old behaviour, issuing a format for each image, even when the format string contains "%n".

Bad behaviour of current "identify":

Code: Select all

f:\web\im>c:\im\ImageMagick-6.9.0\identify   -ping   -format Depth-%p:%[depth]\nColors-%p:%k\nPageGeometry-%p:%g\nResolution-%p:%[xresolution]x%[yresolution]\nType-%p:%r\nCurrentPage-%p:%p\nTotalPages-%p:%n\n   x.tiff

Depth-0:8
Colors-0:256
PageGeometry-0:640x480+0+0
Resolution-0:0x0
Type-0:PseudoClass sRGB
CurrentPage-0:0
TotalPages-0:2
Good behaviour of current "convert -ping":

Code: Select all

f:\web\im>c:\im\ImageMagick-6.9.0\convert   -ping   x.tiff   -format Depth-%p:%[depth]\nColors-%p:%k\nPageGeometry-%p:%g\nResolution-%p:%[xresolution]x%[yresolution]\nType-%p:%r\nCurrentPage-%p:%p\nTotalPages-%p:%n\n   info:

Depth-0:8
Colors-0:221
PageGeometry-0:640x480+0+0
Resolution-0:0x0
Type-0:PseudoClass sRGB
CurrentPage-0:0
TotalPages-0:2
Depth-1:8
Colors-1:236
PageGeometry-1:480x640+0+0
Resolution-1:0x0
Type-1:PseudoClass sRGB
CurrentPage-1:1
TotalPages-1:2
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify with multiple images

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-4 Beta, available by sometime tomorrow. Thanks.
Post Reply