It is currently Thu May 23, 2013 2:47 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: The APNG format
PostPosted: Mon Jan 09, 2012 1:55 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
This thread is moved from a GIF animation program: LICEcap

Background

    So I did some digging for an animated GIF alternative. The only thing I came up with that didn't involve a Javascript tool that probably wouldn't work here on the forums was APNG format, only supported by some browsers (Opera, Mozilla, and Chrome w/ a plugin).

    So I looked into this a bit more to see if this was worthwhile.

Solution

    For GIF to APNG, there's a great converter GIF2APNG that works great. Its open source, looks portable (no settings saved), and works beautifully on LICEcap files. One of the animations created with LICEcap deflated to 60% of its original size. The original animation Baas posted on the LICEcap page reduced by 50%. In addition, the files further compressed with ZIP compression brought the size down even more. [Running ZIP or 7-zip on the GIF file made no real difference.]

    Note that the program's results depended on the file type: it only decreases file size of simple GIF animations on the home site by about 15%. I was only able to save about 5% on an animated series of pictures I took.

Compatibility

    APNG support with some PFW programs:

      Yes: XnView 1.98.5, VirtualDub with mod, Opera - yes, but had some problems with more complex ones generated by LiceCAP

      No: LibreOffice 3.44, IrfanView 4.27, FastStone Image Viewer 4.2, QTWeb, Maxthon

      No and doesn't work with animated GIF files either: Universal Viewer 5.3.0 - (GIF files will view, but had some problems with more complex ones generated by LiceCAP), VLC, SMPLayer, ComicsViewer

Further work

    As a direct conversion from animated GIF to APNG doesn't take advantage of PNG's powerful compression abilities, I went looking for a better method: I tried to split up the GIF files, optimize them with a batch operation in RIOT, and then reassemble.

    I used IrfanView (Options - Extract all Frames), which is great, but there's an incompatibility with LICEcap: you can't use any of the program's extras (timer, mouse button press animation, added words, etc.) as the images show up in different sizes. Right now I'm working with a program to assemble all the frames back together again as an APNG file rather than going through GIF and then the converter. Might be able to bring the size down to something miniscule.

    I also tried just converting a GIF to video using VirtualDub, which worked in VLC. I think I might have been able to bring the size down with a better compression algorithm.

Related articles on the topic


Related tools:


NOTE: A few more tests with some LICEcap files converted to APNG with its extras like text and mouse click animation unfortunately had some issues (conversion looks very odd). Looking into that.

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Re: The APNG format
PostPosted: Tue Jan 10, 2012 10:51 am 
Offline
User avatar

Joined: Sat Mar 31, 2007 2:38 am
Posts: 902
Location: Kce,PL
Interesting summary, thank you.

_________________
Image


Top
 Profile  
 
 Post subject: Re: The APNG format
PostPosted: Sat Jan 14, 2012 2:06 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
Update: I tested gif2apng with GIFs created using PhotoScape's animation tool and it works beautifully. Consistently getting 50% of the size with no visible difference from the original. Excellent results especially when you have MANY frames of a HOWTO or slideshow.

Example:


_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Re: The APNG format
PostPosted: Fri Apr 13, 2012 7:09 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
Quote:
NOTE: A few more tests with some LICEcap files converted to APNG with its extras like text and mouse click animation unfortunately had some issues (conversion looks very odd). Looking into that.


Thread update: user procyon solved this problem.

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Re: The APNG format
PostPosted: Sun Dec 09, 2012 12:46 pm 
Offline
User avatar

Joined: Tue Nov 27, 2012 11:41 pm
Posts: 102
Some other stuff to create and edit animated PNG's:
APNG Anime maker - http://www.portablefreeware.com/index.php?id=2367
RealWorld Paint - http://www.portablefreeware.com/index.php?id=2166
Java APNG - https://www.reto-hoehener.ch/japng/
Paint.NET plugin - http://forums.getpaint.net/index.php?/t ... agif-apng/
Firefox addon - https://addons.mozilla.org/en-us/firefox/addon/animat/

Also recently, while reporting a gif display bug for the image viewer Imagine, I requested support for creating animated png's. The animation editor can read and convert apng's to other formats like gif and animated cursors but can't create apng itself. Hopefully future versions will have that feature.


Top
 Profile  
 
 Post subject: Re: The APNG format
PostPosted: Sun Dec 09, 2012 1:30 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
Userfriendly wrote:
Some other stuff to create and edit animated PNG's:

Great news. Hopefully the wide toolset to generate animated files that are dramatically superior to GIF will expand it's adoption.

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Re: The APNG format
PostPosted: Thu May 02, 2013 5:03 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
Userfriendly wrote:

One of the things that's prevented me from working with the APNG format (or really any animation format) is lack of an effective editor. I hadn't worked with RWPaint much but finally started working with it a bit more and found it to be an outstanding animation editor (for both GIF and PNG).

Lots of tools and tweaks including reordering, copy/paste, edition, and batch changes for color, size, animation speed, etc. PhotoScape has only reording, resizing, and only the GIF format. This is a great find.

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group