How to extract particular pages of tiff

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

Moderators: XnTriq, helmut, xnview

Post Reply
punith8626
Posts: 48
Joined: Thu Feb 02, 2017 11:22 am

How to extract particular pages of tiff

Post by punith8626 »

Hello,

I need to extract particular pages of tiff image (more than one page but not all pages).
Here is the command I tried but it wont work.
nconvert -out jpeg -resize 120 150 -page 0,1,2 -o test.jpg test.tif

But for single page it works.
nconvert -out jpeg -resize 120 150 -page 0 -o test.jpg test.tif

Could you please help on this?
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to extract perticular pages of tiff

Post by cday »

punith8626 wrote:I need to extract particular pages of tiff image (more than one page but not all pages).
Here is the command I tried but it won't work.

Code: Select all

nconvert -out jpeg -resize 120 150 -page 0,1,2 -o test.jpg test.tif
But for a single page it works.

Code: Select all

nconvert -out jpeg -resize 120 150 -page 0 -o test.jpg test.tif[/quote]
I'm not sure that the -page switch supports extracting more than one page at a time, so in the absence of any better information, I can only suggest that you test any other possible code options you can think of... Edit: You could possibly try replacing the commas by spaces, for example].

You might try including the -page switch twice in the same command line to see if that works, sorry I don't have time at the moment to do any tests myself.

Would running nconvert multiple times in a batch file to extract each page you need be an option?
Post Reply