Live data from Hacker News

The PNG image file format is now more popular than GIF

w3techs.com

11–20 of 111 posts

Re: The PNG image file format is now more popular than GIF

#11

Now if only animated pngs were more supported http://caniuse.com/apng

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

#12

I know nothing behind the standard that is "GIF". But am i the only one who thinks its completely unreasonable that a few GIF's can turn my browser into a 5fps mess? How is there not a better option for this?

If that's a reproducible issue, have you considered filing a bug?

I assumed this was widely known/accepted. Never considers filing a bug, i assume you mean for the browser right?

Re: The PNG image file format is now more popular than GIF

#13
post #10
post #7

More numerous perhaps, but not more important--going by the insane explosion in animated GIFs in the last two years... I think folks would have stuck by JPEG if it offered transparency.

"...going by the insane explosion in animated GIFs in the last two years... I think folks would have stuck by JPEG if it offered transparency." That does not make sense as JPEG doesn't support animation. Regardless, the blurriness caused by normal JPEG-compression levels makes it a bad option for most non-photo images.

I believe parent was saying PNG folks would have stuck with JPEG if it offered transparency.

Re: The PNG image file format is now more popular than GIF

#15
"The PNG image file format is now more popular than GIF"... On the Web!

PNG has been more popular than GIF since a very long time for basically anything non-web needing lossless picture compression.

From smartphones icons to OS icons, software logos and icons, etc. I'd say the proportion is about 100:1. Actually I was suprised while just running a "find" on my Linux distro to even find a few .gif files. But thousands of PNGs, of course.

Screenshots taken from OS X and Linux are saved to PNG files (for OS X it actually depends on the version of OS X, sometimes PDF are used, but not GIFs).

And games... Lots of games ship with PNG pictures (as well as jpg of course). But GIF? Common...

It's actually a very, very long time that PNG files are more popular than GIFs.

Glad to hear that it's now true for the Web too.

Re: The PNG image file format is now more popular than GIF

#16
post #10

Earlier quoted context omitted.

"...going by the insane explosion in animated GIFs in the last two years... I think folks would have stuck by JPEG if it offered transparency." That does not make sense as JPEG doesn't support animation. Regardless, the blurriness caused by normal JPEG-compression levels makes it a bad option for most non-photo images.

I believe parent was saying PNG folks would have stuck with JPEG if it offered transparency.

Indeed, it seems that way after reading through it again and inserting a dot.

I would still argue that images used in the layout of the average site, most of which are already prone to having transparent parts, are better off using a lossless rather than a lossy format.

Re: The PNG image file format is now more popular than GIF

#17
post #11

Now if only animated pngs were more supported http://caniuse.com/apng

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.

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

#18

I really wonder why GIFs are still around. Apart for being used as short videos for funny things they have not a huge use afaik. They really feel like an old technology. They are also a pain to support on android.

> Apart for being used as short videos for funny things they have not a huge use afaik

I wouldn't be surprised if those short videos were the bulk of the GIFs around. At least of the GIFs actually used and being dormant in some long forgotten archives.

Re: The PNG image file format is now more popular than GIF

#19

I really wonder why GIFs are still around. Apart for being used as short videos for funny things they have not a huge use afaik. They really feel like an old technology. They are also a pain to support on android.

GIFs are simpler, more widely supported, animated, and in many common cases result in smaller filesizes. But I believe the real reason they're still around is people don't want to fix what isn't broken.

There are a lot of cases where PNGs are superior, mostly because of the extra color depth. But that's not enough for a speedy transition.

Re: The PNG image file format is now more popular than GIF

#20
I believe the only reasonable use of GIFs today is to use for all kinds of 1px gradients for background where you can't use CSS3 for that. And even if image is big - it might be better off with PNG.

basically, if you use just few colors and no semi-transparency and you picture is small - yo might be better off with GIF, otherwise - either PNG or JPG depending on if you need semi-transparency or not, and if you need loss-less compression or not.

Post reply on HN