Page 1 of 1

Jump in Multitif-Files

Posted: 2009-12-01T03:02:43-07:00
by mactoni
Hello,
i want to cut something in a Multitif-File. The informations are on page 1 and then every 14th page.
How can i jump from page 1 to 14 to 28....and stop when there is no next 14th page?
mactoni (using OS/X)

Re: Jump in Multitif-Files

Posted: 2009-12-01T10:20:43-07:00
by fmw42
The best way is to write a script to loop over all your frames and select every 14 one and merge them into one image (if that is what you need rather than separate images). Use the [#] syntax, such as image.tif[0] for the first frame. See http://www.imagemagick.org/Usage/basics/#sequence

However, you can do

convert image.tif[0,13,27,41 ... as far as you want even past the last frame] image_new.gif

for example:

convert rose: rose: rose: rose: rose: rose: rose: rose7.tif
identify rose7.tif
rose7.tif[0] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000
rose7.tif[1] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000
rose7.tif[2] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000
rose7.tif[3] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000
rose7.tif[4] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000
rose7.tif[5] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000
rose7.tif[6] TIFF 70x46 70x46+0+0 8-bit DirectClass 68.4KiB 0.000u 0:00.000

convert rose7.tif[0,2,4,6,8,10,12] rose_new.tif
identify rose_new.tif
rose_new.tif[0] TIFF 70x46 70x46+0+0 8-bit DirectClass 39.1KiB 0.010u 0:00.009
rose_new.tif[1] TIFF 70x46 70x46+0+0 8-bit DirectClass 39.1KiB 0.000u 0:00.009
rose_new.tif[2] TIFF 70x46 70x46+0+0 8-bit DirectClass 39.1KiB 0.000u 0:00.009
rose_new.tif[3] TIFF 70x46 70x46+0+0 8-bit DirectClass 39.1KiB 0.000u 0:00.009