Get the number of tiffs in a multi-tiff with command line ImageMagick?
- by Anders
Is there a way to get the number of tiffs in a multi-tiff with a command line utility in ImageMagick?
What I want to to is to extract (split) the multi-tiff into single files. However if the tiff only contains one tiff (is not a multi-tiff), I would like to do nothing at all... Also if I use the "%d"-option to name the output files I get the "%d" in the file name if it is only one.
...or is there another way to use ImageMagick to avoid strange filenames when converting?