How to extract specific pages from multi tiff file

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 specific pages from multi tiff file

Post by punith8626 »

How to extract specific pages from multi tiff file?
I tried with below command but it didn't work.

Code: Select all

nconvert -out png -n 1 2 3  -o C:\uploads\10-05-2017\6F9AA81B-DE97-42AA-859D-BB019190D704\ori\90637256_#.png  C:\uploads\10-05-2017\6F9AA81B-DE97-42AA-859D-BB019190D704\tiff\123.tif 
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to extract specific pages from multi tiff file

Post by cday »

punith8626 wrote:How to extract specific pages from multi tiff file?
I tried with below command but it didn't work.

Code: Select all

nconvert -out png -n 1 2 3  -o C:\uploads\10-05-2017\6F9AA81B-DE97-42AA-859D-BB019190D704\ori\90637256_#.png  C:\uploads\10-05-2017\6F9AA81B-DE97-42AA-859D-BB019190D704\tiff\123.tif 
I'm not sure whether it is possible to extract individual pages without doing some tests myself, but this may be the NConvert option to use:

Code: Select all

-page num 
... where num is the page number to be extracted. I'm not sure if you can possibly use the option more than once in the same code line??

Note that the -n option is for numbering output files, and the sequence 1 2 3 probably isn't a valid sequence anyway if you check the help file.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to extract specific pages from multi tiff file

Post by cday »

Update to the above:

o -page num is the option to extract a page from a multi-page file;

o Page numbering starts at 0 to extract page 1 (unlike the page numbering in the XnView viewer...);

o The option can only be used once in a command line (otherwise only the last entry is used);

o To extract multiple pages you need to use multiple code lines extracting single pages in a batch file.
Post Reply