如何使用ImageMagick压缩gif图像的大小? [英] How can I compress the size of gif images with ImageMagick?

查看:135
本文介绍了如何使用ImageMagick压缩gif图像的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 convert 命令减小gif图像的大小。目前我使用标志 -depth 8 -type灰度 -depth 8 -resize'400x300>'

I want to reduce the size of gif images with the convert command. Currently I use the flags -depth 8, -type Grayscale, -depth 8 and -resize '400x300>'.

我也确保剥离第一帧在源图像文件名之后带有 [0] 的任何GIF动画。

I also make sure to strip the first frame of any animated gifs with [0] after the source image file name.

但文件有时仍然太大(超过100K)。即使牺牲分辨率,我也想尽量让它们变小。我怎么能这样做?

But the files are still sometimes too large (over 100K). I'd like to try to get them smaller, even if I sacrifice resolution. How can I do this?

推荐答案

我自己对gif文件的Imagemagick压缩相当新,但我发现这个网站

I myself am fairly new to the Imagemagick compression of gif files, but I found this site

http://www.imagemagick .org / MagickStudio / scripts / MagickStudio.cgi 无需代码即可在线转换gif文件。

http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi converts gif files online without code.

如果您想使用代码,请不要使用

If you want to use code why not use

-quality 80% old.gif new.gif

这应该减小文件大小

这篇关于如何使用ImageMagick压缩gif图像的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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