convert radar.gif -channel rgba -alpha set -fuzz 10% -fill none -opaque "#3030CE" test.gif
convert test.gif -channel rgba -alpha set -fuzz 10% -fill none -opaque "#04e9e7" test.gif
convert test.gif -channel rgba -alpha set -fuzz 10% -fill none -opaque "#019ff4" test.gif
convert test.gif -channel rgba -alpha set -fuzz 10% -fill none -opaque "#0300f4" test.gif
convert test.gif -channel RGBA -blur 2x2 test.gif
I was curious if there was a smaller and/or native package that could do the same thing?
I have a weather image: http://radar.weather.gov/ridge/RadarImg/N0R/BYX_N0R_0.gifThere are blue colors that represent radar noise. If I run these image magic commands the image cleans up nicely.
[...]
I was curious if there was a smaller and/or native package that could do the same thing?
http://golang.org/pkg/image/png/
Reader and Writer interfaces are used repeatedly in the standard library - so good to familiarize yourself.
Regards
Srinath
If you need GIF instead of PNG, call gif.Encode instead of png.Encode.