Search code examples
phpimagemagickgifanimated-gifimagemagick-convert

Looks like gifsicle is not installed in the usr/bin/ folder. How can I install it?


First off, I see convert but not gifsicle in the usr/bin/. Am I looking in the wrong place?

I want to compress animated GIFs using https://pornel.net/lossygif but it needs gifsicle to work.

so far i've gotten: exec("convert $animation -coalesce -gravity SouthWest -geometry +0+0 null: $watermark -layers composite -layers optimize $animation"); to work...

now after that, i want to be able to compress that image: exec("gifsicle -O3 --lossy=80 -o $animation $animation");


Solution

  • There are instructions on the gifsicle github page: https://github.com/kohler/gifsicle. depending on your server you might try:

    yum install gifsicle