Split multipage TIF,TIFF images into individual images and RETAIN original filename after conversion.
Posted: 2017-02-21T06:02:56-07:00
Hi All,
I have a set of Multi Page TIF image files, which I am trying to split into individual images. I have tried using convert, which does the trick, but does not give me an option to retain the original file name.
Example:
A.TIF - Original File (10 Pages)
I use :
Convert *.tif %d.tif
Output: 10 different images are created with the file names(0.tif, 1.tif,2.tif,3.tif, 4.tif,5.tif, 6.tif, 7.tif, 8.tif, 9.tif)
The above output would be perfect for me only if I could retain the original file name after conversion/splitting.
Desired output:
10 different images with filenames ( A_1.tif, A_2.tif, A_3.tif, A_4.tif, A_5.tif, A_6.tif, A_7.tif, A_8.tif, A_9.tif, A_10.if)
I have several multi page tif files that I would like to convert, and retain their original file names. I cannot type the filename everytime I run the command.
Here is a sample multi page tif file if required -- http://www.nightprogrammer.org/wp-uploa ... xample.tif
Any help on this is much appreciated.
Thanks in advance !!
PS: I have looked through the forums, googled a lot, tried Mogrify instead, but nothing seems to help.
- Mogrify is not able to split the files, rather it makes the same file 10 times larger.
I have a set of Multi Page TIF image files, which I am trying to split into individual images. I have tried using convert, which does the trick, but does not give me an option to retain the original file name.
Example:
A.TIF - Original File (10 Pages)
I use :
Convert *.tif %d.tif
Output: 10 different images are created with the file names(0.tif, 1.tif,2.tif,3.tif, 4.tif,5.tif, 6.tif, 7.tif, 8.tif, 9.tif)
The above output would be perfect for me only if I could retain the original file name after conversion/splitting.
Desired output:
10 different images with filenames ( A_1.tif, A_2.tif, A_3.tif, A_4.tif, A_5.tif, A_6.tif, A_7.tif, A_8.tif, A_9.tif, A_10.if)
I have several multi page tif files that I would like to convert, and retain their original file names. I cannot type the filename everytime I run the command.
Here is a sample multi page tif file if required -- http://www.nightprogrammer.org/wp-uploa ... xample.tif
Any help on this is much appreciated.
Thanks in advance !!
PS: I have looked through the forums, googled a lot, tried Mogrify instead, but nothing seems to help.
- Mogrify is not able to split the files, rather it makes the same file 10 times larger.