Page 1 of 1
split one huge tiff file (650 images) into smaller tif files (of like 100)
Posted: 2015-11-13T14:18:10-07:00
by samster712
HI,
I was wondering if there was a function in imageMagick for me to take a huge multipage tiff file with 600+ images (about 2GB) and split it into two or more smaller tifs files. Like for instance If i want to separate the first 100 images into a new tiff files so that i can analyze those first 100 separately.
thanks
Sam
Re: split one huge tiff file (650 images) into smaller tif files (of like 100)
Posted: 2015-11-13T14:26:44-07:00
by fmw42
Code: Select all
convert image.tif[0-99] newimage.tif
But you will need lots of RAM to do it efficiently, since you need to load the whole input tiff.
see
http://www.imagemagick.org/Usage/basics/#list_ops
http://www.imagemagick.org/script/comma ... essing.php (selecting frames)
Re: split one huge tiff file (650 images) into smaller tif files (of like 100)
Posted: 2015-11-13T15:27:29-07:00
by samster712
i have 16GB is that enough?
Re: split one huge tiff file (650 images) into smaller tif files (of like 100)
Posted: 2015-11-13T15:55:00-07:00
by fmw42
If your file is 2GB, you should have enough. You need enough to hold the input and output images.
If you want to separate the input into several output files, you can do that all at one time.
In unix syntax,
Code: Select all
convert input.tif \
\( -clone 0-99 -write output0.tif +delete \) \
\( -clone 100-199 -write output1.tif +delete \) \
...etc...
\( -clone 600--1 -write output6.tiff +delete \) \
null:
in Windows syntax:
Code: Select all
convert input.tif ^
( -clone 0-99 -write output0.tif +delete ) ^
( -clone 100-199 -write output1.tif +delete ) ^
...etc...
( -clone 600--1 -write output6.tiff +delete ) ^
null:
Always best to provide you IM version and platform, when asking questions on this forum