How to extract particular pages of tiff

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

Moderators: XnTriq, helmut, xnview

punith8626
Posts: 9
Joined: Thu Feb 02, 2017 11:22 am

How to extract particular pages of tiff

Postby punith8626 » Mon Feb 20, 2017 10:12 am

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: 1364
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to extract perticular pages of tiff

Postby cday » Mon Feb 20, 2017 10:45 am

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?


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 1 guest