Page 1 of 1

Individually Label stdin GIF pages

Posted: 2007-08-23T12:47:20-07:00
by whirled
I am trying to produce GIF previews of multi-page PDFS from a script using the following command:

Code: Select all

convert -density 300 -resize 150% -profile "USWebCoatedSWOP.icc" pdf:- -profile "sRGB Color Space Profile.icm" -resample 72 gif:- | montage -label 'Front' gif:-[0] -label 'Back' gif:-[1] -tile 2x -frame 2 -geometry +2+2 gif:-
I am having an issue with the montage command. I can set a generic label such as 'Page %p', which of course works fine. I want to be able to define custom labels for each page, though, such as 'Front' & 'Back'.

Can anyone explain how this can be performed for a GIF passed through stdin, or if it can be done at all?

Any help would be greatly appreciated.

Re: Individually Label stdin GIF pages

Posted: 2007-08-23T20:25:56-07:00
by anthony
The label is an image meta data that can be set by setting -label before each image read, or over ALL images in the current memory sequence using -set label.

See basics...
http://www.imagemagick.org/Usage/basics/#settings

Also exampled in 'montage'...
http://www.imagemagick.org/Usage/montage/#label