Animated Gifs - Background problem

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

Re: Animated Gifs - Background problem

Post by fmw42 »

convert picture.gif -clone 0 -coalesce -gravity South -background white -background none -splice 0x18 -annotate 0 "Label First" -swap -1,0 -mattecolor peru -frame 2x2+1+1 +delete label_picture.gif

Why do you have both -background white AND -background none. The last one is probably what is in effect and it sets the background to transparent which would look like gray in some displays.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Animated Gifs - Background problem

Post by anthony »

Actually -frame has two color settings. -matte is used for the base color that is used in the frame, while -bordercolor is used as the backgroudn fill within the frame. this only effects images containing transparency.

See IM Examples, Frame
http://imagemagick.org/Usage/crop/#frame

you have two options either set -compose Src or -bordercolor None, either will do the job.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply