Get the number of tiffs in a multi-tiff with command line ImageMagick?
Posted
by Anders
on Super User
See other posts from Super User
or by Anders
Published on 2010-04-13T07:53:08Z
Indexed on
2010/04/13
7:53 UTC
Read the original article
Hit count: 356
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?
© Super User or respective owner