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
Multiscene files incorrectly reported
Re: Multiscene files incorrectly reported
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