How to create an animated .png from two images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Elapido
Posts: 42
Joined: 2011-06-10T14:27:28-07:00
Authentication code: 8675308

How to create an animated .png from two images

Post by Elapido »

Hi. I'd like to know if ImageMagick can be used to join two .pngs into an animated .png. The result would be an infinite cycle of both images with an interval of 5 seconds. Thanx in advance!
Elapido
Posts: 42
Joined: 2011-06-10T14:27:28-07:00
Authentication code: 8675308

Re: How to create an animated .png from two images

Post by Elapido »

Following a tutorial I've been able to convert the files to animated gif, but I don't know how to obtain an animated png. Any help?

convert z:\convert\folder1\pic.png z:\convert\folder2\pic.png -gravity south -set delay 300 z:\convert\output.gif
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

Re: How to create an animated .png from two images

Post by GreenKoopa »

Strictly speaking there is no such thing as an animated png. There is mng, apng, and others, but none are widely supported. Do you know specifically what you need?

MNG, Multiple-image Network Graphics
http://www.imagemagick.org/Usage/formats/#mng
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to create an animated .png from two images

Post by fmw42 »

convert your pngs to an animated gif
Elapido
Posts: 42
Joined: 2011-06-10T14:27:28-07:00
Authentication code: 8675308

Re: How to create an animated .png from two images

Post by Elapido »

This is for a frontend program that doesn't accept animated gifs, only pngs. However, I still have to try if it accepts an animated png. I've just downloaded some from the web and I'll try tonight.
rich2005
Posts: 32
Joined: 2012-04-09T11:07:36-07:00
Authentication code: 8675308

Re: How to create an animated .png from two images

Post by rich2005 »

I don't know that it is possible with IM

The whole point missed in the above is that gif is limited to 256 colours and apng not.

This takes you to most of the resources. http://en.wikipedia.org/wiki/APNG
edit: sorry missed out the link http://littlesvr.ca/apng/

The java application would do it for you: http://i.imgur.com/G3ums7M.jpg

Sadly the Gimp plugin has died on my Linux installation, might work with windoze, but the linux command line apps work fine.

Try this. http://rapidshare.com/files/1279951951/test.png made with japng. Play in your web browser.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to create an animated .png from two images

Post by fmw42 »

IM will only make MNG and not APNG. But MNG is not well supported. So you probably need to use some other tool besides IM if you want APNG.
Post Reply