[Command Line convert] Multipage TIFF -> one JPG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ugo
Posts: 2
Joined: 2011-11-30T04:09:24-07:00
Authentication code: 8675308

[Command Line convert] Multipage TIFF -> one JPG

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
ugo
Posts: 2
Joined: 2011-11-30T04:09:24-07:00
Authentication code: 8675308

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

Post by ugo »

tks
Post Reply