Page 1 of 1

Convert multipage tiff into blocks of 100 pages

Posted: 2015-05-08T01:32:35-07:00
by mundi
Hello,

I have a big tiff file of over 1000 pages and want to to split it up in single paged tiffs I use the command

Code: Select all

convert blah.tif -compress JPEG blah_page%04d.tif
The problem is that this uses all memory and aborts. What I want to do now is splitting the tif in smaller tifs of
100 pages then split them up in 1 paged tiffs.

My question: is there a command to splitt my tiff in 100 paged tiffs?

Re: Convert multipage tiff into blocks of 100 pages

Posted: 2015-05-08T10:11:32-07:00
by fmw42
try

Code: Select all

convert blah.tif[0-99] -compress JPEG blah_page%04d.tif
But IM may still need to read the whole tiff file before processing only the first 100. So you may still need to have a large amount of RAM.

But also see
http://www.imagemagick.org/Usage/files/#massive
http://www.imagemagick.org/script/archi ... tera-pixel
viewtopic.php?f=1&t=25729#p112224
and
http://www.imagemagick.org/Usage/basics/#list_ops

Re: Convert multipage tiff into blocks of 100 pages

Posted: 2015-05-09T00:20:11-07:00
by mundi
Yes, your command did it! Thanks!