News for hackers. Stuff that matters.
Re:The PNG image file format is now more popular than GIF by twodayslate on Thursday January 31, 2013 @10:37AM (#5145409)
Now if only animated pngs were more supported

http://caniuse.com/apng

Re:The PNG image file format is now more popular than GIF by gue5t on Thursday January 31, 2013 @10:45AM (#5145468)
Webkit's stance is basically "we're only doing it if upstream libpng supports it" (because APNG support basically requires a couple hooks in libpng itself) but the libpng devs refuse to accept the patch for apng support because they are of the opinion that libpng should process only PNG, not derivative formats, which is what they consider APNG.
Re:The PNG image file format is now more popular than GIF by UnoriginalGuy on Thursday January 31, 2013 @11:01AM (#5145555)
In fairness I can see it from the libpng guy's perspective. It will make their library larger and potentially less fit for a certain purpose.

Why hasn't someone forked libpng, added the apng patch and then made it available for WebKit? Then everyone is happy. Just needs a middle-man.

Re:The PNG image file format is now more popular than GIF by maxst on Thursday January 31, 2013 @01:44PM (#5146545)
No need to fork libpng. Currently, vanilla libpng and apng patch are both hosted on sourceforge, and it's trivial to automatically download both and apply the patch. In fact, a few distros (Arch, Gentoo, Mandriva, FreeBSD) already do exactly that for their libpng packages.

But keep in mind that apng patch only adds a few functions to libpng API, and it's entirely up to applications to actually use those API calls to request extra frames.

Re:The PNG image file format is now more popular than GIF by rkuykendall-com on Thursday January 31, 2013 @11:42AM (#5145806)
Because then the upkeep and maintenance of the PNG library for webkit relies on a middle-man.
Re:The PNG image file format is now more popular than GIF by eggspurt on Thursday January 31, 2013 @01:14PM (#5146345)
At the PNG Group we designed the MNG format for animated images, see http://en.wikipedia.org/wiki/Multiple-image_Network_Graphics
Re:The PNG image file format is now more popular than GIF by maxst on Thursday January 31, 2013 @03:05PM (#5147080)
I remember you guys wanted to create simplified MNG 2.0, without stuff like MAGN and delta-PNG. What happened to it?
Re:The PNG image file format is now more popular than GIF by eggspurt on Thursday January 31, 2013 @03:22PM (#5147176)
Honestly, I tuned out. Animations are procedural and are best represented with a scripting language - not with a declarative image format. Resource-constraining javascript within an (i)frame is probably a better way to spend a browser developer's time.
Re:The PNG image file format is now more popular than GIF by maxst on Thursday January 31, 2013 @04:14PM (#5147513)
I believe there is a niche for simple animations: just a sequence of frames in a loop. No need for JavaScript, since it's just a simple loop. Easy to upload to image hosting services. And all browsers already support such simple-loop animated GIFs, so the code is already there, just not utilized to full (true color) potential.
Re:The PNG image file format is now more popular than GIF by zevyoura on Thursday January 31, 2013 @11:51PM (#5149268)
This is true for the majority of animations, but .gifs have come to serve a niche for short video content sans audio that they uniquely fulfill on the web. If APNG or MNG or whatever could replace huge animated .gifs for things like r/cinemagraphs I'd be thrilled.
Re:The PNG image file format is now more popular than GIF by eggspurt on Friday February 01, 2013 @10:00AM (#5151030)
Having seen animated gifs, I can assure you that mngs (pronounced as mings) would be likewise huge. It's better to just have a 1-line JS script do this, and a standard for sandboxing nonthreatening JS.
Re:The PNG image file format is now more popular than GIF by maxst on Friday February 01, 2013 @11:21AM (#5151601)
But you can't upload that 1-line JS script to imgur.

Animated GIFs are getting very popular again because even with 5Mb-8Mb sizes GIFs are easier to handle today, comparing to downloading that 200Kb Dancing_Baby.gif in the 90s.

Re:The PNG image file format is now more popular than GIF by zevyoura on Monday February 04, 2013 @12:54AM (#5162684)
My understanding is that PNGs are in general smaller than gifs for equivalent quality, so wouldn't the animated version be similarly smaller?
Re:The PNG image file format is now more popular than GIF by snogglethorpe on Friday February 01, 2013 @08:26AM (#5150550)
Wait, you want to remove deltas?!

Animated GIFs are still humongous and slow to load, even with today's fast network links... Surely one of the bet reasons to replace them is to actually do a bit better.

Re:The PNG image file format is now more popular than GIF by maxst on Friday February 01, 2013 @09:05AM (#5150706)
The type of deltas used in GIF can be easily implemented as it's the standard alpha blending method, available at OS and GPU level. Can't say that about more complex delta-PNG algorithm from MNG spec.
Re:The PNG image file format is now more popular than GIF by mherkender on Friday February 01, 2013 @02:52AM (#5149740)
I have to say, I never understood the need for a gif-like animation in a png-like format. Gifs have incredibly basic animation that's difficult to control in most (all?) browsers, and it's pretty useless for everything except brief clips on tumblr.

Here's your animated png format, put all frames of the animation in a png sprite sheet, and fill early pixels with metadata. Add in a small library and you've got a format that's allows for more advanced animation than gifs, with the better compression and alpha of pngs, and is supported right now in any browser with decent canvas support.