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
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