Page 1 of 1

Frames Optimization

Posted: 2015-11-19T06:22:44-07:00
by Therand
Hi,

I need help about imagemagick .
Note that I am running windows seven 64 .

I have to extract .gif out frames .png
So I do: "C:\Program Files\ImageMagick-6.9.2-Q16\mogrify.exe" -coalesce -format png "C:\Users\Desktop\base\*.gif "

My concern is that coalesce "removes" the optimization, or most optimizations on my gif are only pauses.
So for my .png, he has no time to pause between frames and my animation is too fast!

My question is, how do I show 5 times the frame before optimization to give the illusion of a break when I would read my .png files.

Thank you in advance and sorry for my language, I'm a french user ^^

Re: Frames Optimization

Posted: 2015-11-19T06:44:25-07:00
by snibgo
I'm not sure what you are asking. PNG files don't have a delay setting, because they are not animated files. If you convert a GIF to many PNG files, the PNG files have no delay.

Re: Frames Optimization

Posted: 2015-11-19T06:54:47-07:00
by Therand
No, I have the original gif, I would simply convert the "optimization delay" in >> "copy last frame optimize X5".
And then turn it while png.

Re: Frames Optimization

Posted: 2015-11-19T08:35:03-07:00
by Bonzo
You can get a version of .png as an animation https://en.wikipedia.org/wiki/APNG

Re: Frames Optimization

Posted: 2015-11-19T10:35:09-07:00
by fmw42
Bonzo wrote:You can get a version of .png as an animation https://en.wikipedia.org/wiki/APNG
But APNG animations are not playable in browsers. It is not well supported.

If the OP is asking to separate each frame into a PNG, then that is feasible

convert animation.gif animation.png

Since png does not support multiple-frame files, the result will be multiple images: animation-0.png, animation-1.png ... animation-N.png

Re: Frames Optimization

Posted: 2015-11-19T13:07:04-07:00
by Therand
yes, I get this result!
I have a program to read: animation-0.png, wait, animation-1.png, wait, animation-2.png, wait, animation-3.png, ...

my problem is, for example if "animation-24.png" contained optimization (in the old gif), if it has disappeared in png.
The solution would be to copy the frame 24 without optimization and paste x5 (animation-25.png, animation-26.png, animation-27.png, animation-28.png and animation-29.png).

It's possible?

Re: Frames Optimization

Posted: 2015-11-19T13:55:47-07:00
by fmw42
try adding -coalesce when converting your animation.gif to individual png frames. see
http://www.imagemagick.org/script/comma ... p#coalesce
http://www.imagemagick.org/Usage/anim_basics/#coalesced