Converting CMYK images to RGB colour space with Imagemagick

4/12/2006

CMYK images will not display in most web browsers (Safari is an exception). We added this fix to convert to RGB colour space wherever ImageMagick convert is called:

-colorspace RGB

For example:

convert -colorspace RGB -geometry 400x300 -quality 90 cmyk.jpg rgb.jpg
No Comments

Cropping animated GIFs in ImageMagick

22/02/2006

From http://www.cit.gu.edu.au/~anthony/graphics/imagick6/animations/#crop:

Notice that for a normal crop, the canvas of the animation remains the same size. This is often not what is wanted when cropping an animated image.

Because of this, in IM version 6.2.4-5, a special flag ‘!’ was created for adding to the “-crop” argument. This flag will cause crop to not only crop the individual image frames, but also adjust the page or canvas information about the image to that same area.

No Comments

Capturing the first frame of an animated GIF with ImageMagick

21/02/2006

Just put [0] on the input filename to specify only the first frame:

convert "animation.gif[0]" file.jpg

Source:

http://studio.imagemagick.org/pipermail/magick-users/2002-June/003279.html

No Comments

Imagemagick: overlay logo on image

5/12/2005
composite -compose atop -gravity southwest -geometry +10 +10 logo_small.gif photo.jpg photo_with_logo.jpg
No Comments