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
[Command Line convert] Multipage TIFF -> one JPG
- 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
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
convert img.tif[0] -strip -thumbnail "200x200" -quality 90 -???? ??? img.jpg
see "selecting frames" at
http://www.imagemagick.org/script/comma ... essing.php