Page 1 of 1

Multipage TIF output file number format

Posted: 2015-02-13T00:51:31-07:00
by paradd
I convert multipage TIFF to PNG and take result:
abc.tif -> abc-0.png , abc-1.png, abc-10.png
If convert this PNG files to multipage TIF then pages 0,1,10,11,12...2,20,...
How make ouput filenames like abc-00.png, abc-01.png...etc.

Re: Multipage TIF output file number format

Posted: 2015-02-13T01:49:39-07:00
by snibgo
Be explicit how you want the filenames, for example:

Code: Select all

convert abc.tif abc_%06d.png
This creates files abc_000000.png, abc_000001.png, abc_000002.png etc. These will sort in alphabetical order.

Re: Multipage TIF output file number format

Posted: 2015-02-13T04:37:40-07:00
by paradd
Tnx! %02d works as i wanted.