首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 平面设计 > 图形图像 >

应用imagemagick 调用命令生成gif缩略图

2012-12-20 
使用imagemagick 调用命令生成gif缩略图需要两步用imagemagick生成gif的缩略图不能一步到位,需要两步操作

使用imagemagick 调用命令生成gif缩略图
需要两步
用imagemagick生成gif的缩略图不能一步到位,需要两步操作

第一步
convert sinykk.gif -coalesce sinykk_coalesce.gif

第二步

convert  sinykk_coalesce.gif -resize "300X300>"  sinykk_end.gif

就算要批量处理也很容易了.

说明:

"300X300>" 这个是当GIF图片没有300的长宽将不进行长宽操作

-coalesce
Fully define the look of each frame of an GIF animation sequence, to form a 'film strip' animation.

Overlay each image in an image sequence according to its -dispose meta-data, to reproduce the look of an animation at each point in the animation sequence. All images should be the same size, and are assigned appropriate GIF disposal settings for the animation to continue working as expected as a GIF animation. Such frames are more easily viewed and processed than the highly optimized GIF overlay images.

The animation can be re-optimized after processing using the -layers method 'optimize', though there is no guarantee that the restored GIF animation optimization is better than the original.

热点排行