[magick-users] invert colors of animated gif?
Fred Weinhaus
fmw at alink.net
Sat Jun 21 21:30:57 PDT 2008
I am not an expert on animations, but ...
You will likely have to separate the frames (using coalesce), negate
them (using -negate) or change the color of only the white ones
(using -fuzz xx% -fill somecolor -opaque white), etc and then
recombine. But should not be too bad.
See
http://www.imagemagick.org/Usage/anim_basics/
http://www.imagemagick.org/Usage/anim_mods/
http://www.imagemagick.org/Usage/color/
http://www.imagemagick.org/Usage/
http://www.imagemagick.org/Usage/reference.html
if this does not work
convert animation.gif -negate animation_negate.gif
then something like this should work
convert animation.gif -coalesce -negate \
-quiet -layers OptimizePlus -loop 0 animation_negate.gif
>I have an animated gif image of a progress spinner which I am trying to use on
>a black background, however the spinner has some white pixels around it which
>makes it look pretty bad.
>
>I am curious if imagemagick has a way to invert the colors on all frames of
>a gif image? And if so, how to do it.
>
>Thank you.
>
>Patrick J. Collins
>http://collinatorstudios.com
More information about the Magick-users
mailing list