【问题标题】:Imagemagick animated gif size optimizationImagemagick 动画 gif 大小优化
【发布时间】:2011-07-27 09:47:07
【问题描述】:

我正在使用此代码来调整和保存动画 gif (php):

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

完成后,文件大小会非常大。通常比原来的还要大!我可以做些什么来减小文件大小?

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

【问题讨论】:

  • 即使您将图像大小调整为更小我也会发生这种情况?
  • 您的原始文件是什么格式的?
  • 原件是 GIF 动画。是的,菲利普

标签: php image compression imagemagick gif


【解决方案1】:

添加-layers optimize

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

当我遇到这个问题时,这对我来说已经足够好了。 Looks like there are some more advanced options discussed here as well

【讨论】:

  • 我尝试添加该选项,但文件仍然比原始文件大,即使我将其调整为更小的尺寸。奇怪...
猜你喜欢
  • 2014-07-31
  • 2012-04-16
  • 2013-08-28
  • 1970-01-01
  • 2017-11-22
  • 2019-07-21
  • 2015-03-20
  • 2018-04-18
  • 1970-01-01
相关资源
最近更新 更多