pass multiple pages using -page

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
blender50
Posts: 3
Joined: Mon Mar 30, 2009 7:35 pm

pass multiple pages using -page

Post 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....
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: pass multiple pages using -page

Post 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?
Pierre.
blender50
Posts: 3
Joined: Mon Mar 30, 2009 7:35 pm

Re: pass multiple pages using -page

Post 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.
blender50
Posts: 3
Joined: Mon Mar 30, 2009 7:35 pm

Re: pass multiple pages using -page

Post 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,...
Post Reply