Page 1 of 1

[Command Line convert] Multipage TIFF -> one JPG

Posted: 2011-11-30T06:07:07-07:00
by ugo
Hi,

I'm using the command line processing command "convert" to generate some thumbnails (in *.jpg) from images of any formats (png, bmp, pdf, tiff, psd...);
I complain a problem for those images in multi-level or multi-page as the TIFF: in this case ImageMagick generates one file per page (naming <file-name>-1.jpg, <file-name>-2.jpg, ...)

I'd ask you how I can get the thumbnails of oly the first page (or merge of layers):

> convert img.tif -strip -thumbnail "200x200" -quality 90 -???? ??? img.jpg

(and I'd like to use always the same call for all image format)

tks

Re: [Command Line convert] Multipage TIFF -> one JPG

Posted: 2011-11-30T19:24:47-07:00
by fmw42
I don't understand all the ???? marks. But to get only the first page of any image, even if it has only one page, add [0] to the end of you input file

convert img.tif[0] -strip -thumbnail "200x200" -quality 90 -???? ??? img.jpg

see "selecting frames" at
http://www.imagemagick.org/script/comma ... essing.php

Re: [Command Line convert] Multipage TIFF -> one JPG

Posted: 2011-12-07T03:10:56-07:00
by ugo
tks