加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – Imagemagick动画gif大小优化

发布时间:2020-12-13 17:57:37 所属栏目:PHP教程 来源:网络整理
导读:我使用此代码来调整大小并保存动画gif(php): system("convert *originalfile* -resize *size* -coalesce *newfile*); 完成后,文件大小非常大.通常比原来大!我该怎么做才能减小文件大小? 我用convert $completeMiff -dither none -matte -depth 8 -deconst
我使用此代码来调整大小并保存动画gif(php):
system("convert *originalfile* -resize *size* -coalesce *newfile*);

完成后,文件大小非常大.通常比原来大!我该怎么做才能减小文件大小?

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

添加层优化
system("convert *originalfile* -resize *size* -coalesce -layers optimize *newfile*");

当我遇到这个问题时,这对我来说运作得很好. Looks like there are some more advanced options discussed here as well

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读