I know the ImageMagick convert command can convert a single multipage TIFF to multiple PNG files.
What convert command-options allow me to specify the output filename format?
Based on my research, I tried the options below with no success.
convert original.tif -format PNG -set filename:area '%t-PAGE-%p' "%[filename:area]"
If the original.tif file contains 3 pages, I expect 3 new PNG files with filenames:
original-PAGE-0.PNG
original-PAGE-1.PNG
original-PAGE-2.PNG
The solution for me was to update to a newer version of ImageMagick (v6.2 or newer) since prior to ImageMagick ver 6.2, the page number was the suffix in the output filename:
<original_filename>.<format_suffix>.<image_number>
e.g. image.png.0
Starting with IM 6.3, the page number was moved before the filename suffix:
<original_filename>-<image_number>.<format_suffix>
e.g. image-0.png