您的位置:首页 > 其它

使用convert制制作gif图片动画

2012-05-10 14:22 567 查看
<<convert notes>>

Tags: linux,linux-tool,ps,photo

1. Create an animated GIF on linux with `convert`

// 把当前目录下的所有bmp文件合成一个gif图片动画, 每帧间隔0ms, 重复播放.

// -delay n 迟延n*10毫秒

// -loop n 播放n轮, 0表示不断地重复播放

$ convert -delay 0 *.bmp -loop 0 animated.gif





// So to create an animation we use the convert command

$ convert -delay 50 frame1.gif frame1.gif frame1.gif -loop 0 animated.gif

// Also if we want to add a pause between each loop

$ convert -delay 50 frame1.gif -delay 100 frame1.gif -delay 150 frame1.gif -loop 0 -pause 200 animated.gif

// Also using convert we can combine 2 animated gifs

$ convert anim1.gif anim2.gif combined.gif

Enjoy!

Bookmark/Search this post with

// 把图片放缩为640x480

$ mogrify -resize 640x480 *.jpg
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: