Imagemagick动画GIF大小优化 [英] Imagemagick animated gif size optimization

查看:249
本文介绍了Imagemagick动画GIF大小优化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用这段代码来调整和保存动画的gif(php):

I am use this code to resize and save a animated gif (php):

system("convert *originalfile* -resize *size* -coalesce *newfile*); 

完成后文件大小相当大

我使用 convert $ completeMiff -dither none -matte -depth 8 -deconstruct -layers optimizePlus -colors 32 $ optimizedFile_16 ,文件变得更大???

I used convert $completeMiff -dither none -matte -depth 8 -deconstruct -layers optimizePlus -colors 32 $optimizedFile_16 and the file gets even bigger???

推荐答案

添加 -layers optimize

system("convert *originalfile* -resize *size* -coalesce -layers optimize *newfile*"); 

,当我遇到此问题。看起来有一些更先进此处讨论的选项

That worked well enough for me, when I faced this issue. Looks like there are some more advanced options discussed here as well

这篇关于Imagemagick动画GIF大小优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆