Multiscene files incorrectly reported

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
seanburke1979

Multiscene files incorrectly reported

Post by seanburke1979 »

Using a Q16 build of IM-6.3.6-9 on Gentoo Linux.
I am using the following command to get the number of frames from a multiframe tiff file:
identify -format "%[fx:n]" Cube001.tif
What gets reported back is:
212121212121212121212121212121212121212121
Instead of the 21 that I am expecting.
This is not a string problem - image_info->number_scenes is actually being reported as this number. I know this because if I try to convert the file, I get an out-of-memory error when it tries to dimension the target. It is also not limited to TIFFs, I have tried it with multilayer IPL files too with the same results.

The tiff (21 frames, grayscale)
ftp://depot.aecom.yu.edu/pub/oiaTG2Heza ... ube001.tif
The ipl (21 frames, grayscale)
ftp://depot.aecom.yu.edu/pub/oiaTG2Heza ... ube001.ipl

Best,

Sean
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Multiscene files incorrectly reported

Post by magick »

The command is working correctly. You are asking for the number of images in the sequence for each of the images in the sequence. You can add \n to the -fx option to separate the answer with a carriage return:
  • identify -format "%[fx:n]\n" Cube001.tif
seanburke1979

Re: Multiscene files incorrectly reported

Post by seanburke1979 »

Ahh, ok. Thanks!
Post Reply