看起来像usr / bin /文件夹中没有安装gifsicle。我该如何安装?

时间:2014-07-18 06:08:40

标签: php imagemagick gif animated-gif imagemagick-convert

首先,我在convert中看到gifsicle但不是usr/bin/。我在找错了地方吗?

我想使用https://pornel.net/lossygif压缩动画GIF,但需要使用gifsicle才能正常工作。

到目前为止,我已经得到了: exec("convert $animation -coalesce -gravity SouthWest -geometry +0+0 null: $watermark -layers composite -layers optimize $animation");要工作......

现在之后,我希望能够压缩该图像:exec("gifsicle -O3 --lossy=80 -o $animation $animation");

1 个答案:

答案 0 :(得分:0)

gifsicle github页面上有说明:https://github.com/kohler/gifsicle。根据您的服务器,您可以尝试:

yum install gifsicle