开发者

GIMP animation question

开发者 https://www.devze.com 2023-01-15 05:16 出处:网络
Is it possible to 开发者_StackOverflow社区create an animation in GIMP that will loop only certain number of times and then stop playing?

Is it possible to 开发者_StackOverflow社区create an animation in GIMP that will loop only certain number of times and then stop playing?

I see there is an option that allows looping forever.

But I want the animation to stop after looping 5 times or say 30 seconds not play forever.

What are my options?


As far as I can tell from the GIMP interface, the simple answer is "no."

That said, presuming you are creating an Animated GIF, look at the the Animated GIF section on Wikipedia: http://en.wikipedia.org/wiki/Graphics_Interchange_Format

Note that the 2-byte entry at offset 31D (797 decimal) is FF FF, from experience, this -1 for non-stop repeats.

You could manually change these two bytes (with \005\000 for 5 times). I just tried this and it worked for me.

Good luck.


One solution would be to output a set of image files (like a1.png, a2.png, a3.png ...) from GIMP and then use imagemagick to create the gif. You would use:

convert *.png -loop 1 out.gif

You can set how many times you want it to loop. If you use 0, it will loop forever.

http://www.imagemagick.org/Usage/anim_basics/#loop


You could manually repeat the sequence of images as many times over as necessary, but that would result in an incredibly large file, so that might not be the way you want to go.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号