Page 1 of 1

pass multiple pages using -page

Posted: Wed Apr 08, 2009 4:41 pm
by blender50
Is there a way to pass nconvert more than one page when the -page option is selected?

I have large multilayer tiffs (thousands of images) and would like to be able to call nconvert once to output 5 & 6 or 5,7,9.... you get the picture.

And if this is doable can I pass the page numbers to the output filename? eg. 5.jpg, 6.jpg

I can accomplish this in PHP and call nconvert using bac tics but I worry about the speed hit I would take having to initialize nconvert for each item.

Thanks in advance for any input.

As an aside I've been trying to use: ./nconvert -out jpeg -q 75 -page 2 someTif.tif and am only getting the first image NOT the second....

Re: pass multiple pages using -page

Posted: Thu Apr 09, 2009 11:48 am
by xnview
blender50 wrote:Is there a way to pass nconvert more than one page when the -page option is selected?
No, you want to process all pages of a multi page tiff?

Re: pass multiple pages using -page

Posted: Thu Apr 09, 2009 6:25 pm
by blender50
I wish to convert just some of the pages. Some of these tiffs have thousands if images and I only need a handful of them. They are distributed randomly throughout the tiff.

Re: pass multiple pages using -page

Posted: Thu Apr 09, 2009 6:27 pm
by blender50
blender50 wrote:
As an aside I've been trying to use: ./nconvert -out jpeg -q 75 -page 2 someTif.tif and am only getting the first image NOT the second....
This was just me being stupid, I'd forgotten that the page numbering is 0,1,2,.... and not 1,2,3,...