Page 1 of 1

How to add a zoom effect on a GIF or PNG file (command line)

Posted: 2016-03-14T00:47:56-07:00
by pigeon33
Hello,

Do you know if it is possible to add a zoom effect on a non animated GIF or PNG file?

This is what I need: http://freegifmaker.me/img/gifim300x226/1249416126.gif

Moreover is it possible to add a delay between each zoom?

(non animated GIF or PNG >> wait X seconds >> zoom effect >>)

Thank you in advance for helping me...

M.

Re: How to add a zoom effect on a GIF or PNG file (command line)

Posted: 2016-03-14T03:04:19-07:00
by snibgo
That is a GIF file, so can contain multiple frames. PNG files contain only single frames, so can't record animations.

For a zoom effect from a single image:
1. Read the image.
2. Create multiple versions of that image, each scaled by a different amount (but the same overall size).
3. Write the multiple frames to any file format that can record multiple frames, such as GIF.

For step 2, I generally use "-distort SRT".

EDIT: For some examples, see my "Animation with SRT" page.

Re: How to add a zoom effect on a GIF or PNG file (command line)

Posted: 2016-03-20T05:00:35-07:00
by pigeon33
Hi Snibgo,

Thank you very much for your help!

M.