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)
Jump in Multitif-Files
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Jump in Multitif-Files
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
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