Skip to content
WJunction - Webmaster Forum

Compiling gif2apng on debian

Status
Not open for further replies.
Came accross something I thought to be pretty unique today, the ability to animate PNG's. First of all I will warn that this requires Firefox 3 or Opera 9.5 or a couple other browsers may support it (Not IE).

What is an animated PNG?
slideplayfe9.png

^ IF you cant see that moving (once it loads of course) then your browser doesnt support animated PNG's

How do I make one?
Many ways although gif2apng is the best way on linux (console), and so I will guide you through compiling it.

When/Why should I use animated PNG's
- To save bandwidth, you can save 20% easy, even more will be possible once firefox fixes support for BLENDING (40-50%)
- Backwards compatible with PNG, people who dont support APNG should just see the first frame.

Install dependencies:
Code:
apt-get install zlib1g-dev zlib1g

Code:
# cd ~
# mkdir gif2apng
# cd gif2apng
# wget http://downloads.sourceforge.net/project/gif2apng/1.1/gif2apng-1.1-src.zip?use_mirror=transact
# unzip gif2apng-1.1-src.zip
# rm *.zip
# gcc -Wall -lz gif2apng.c -ogif2apng

There you go its compiled, you may want to move the executable into the local path with a comand like:
Code:
mv gif2apng /usr/bin

then just use it like:
Code:
gif2apng in.gif out.png

-SplitIce

Source: http://thewarezscene.org/forums/ass...ompiling-gif2apng-debian-t289075.html#p409050
 

7 comments

I myself havent got round to doing what I intended with this, although what is the advantages of gif2apng compared to apngasm?
 
If your source is animated gif, use gif2apng.

If your source is PNG image sequence, use apngasm.

apngdis does the opposite: apng -> png sequence.
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
2,474
Messages
240
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom