Live data from Hacker News

The PNG image file format is now more popular than GIF

w3techs.com

21–30 of 111 posts

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

#21

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.

I think it's because of IE. I know IE sopports transparent PNGs for quite a while, but until not very long ago there were not so many options and people don't really like to upgrade IE apparently.

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

#22

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?

I think that's unreasonable, especially because it's never happened to me in recent memory.

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

#24
post #16

Earlier quoted context omitted.

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.

You're underestimating the number of non-photographic JPEG files in use despite lacking transparency. It appears a significant number of people don't care about artifacts.

That said, JPEG does today support lossless compression, if you really want to go there. It sort of even supports transparency[1].

[1] http://news.ycombinator.com/item?id=1772760 for a javascript solution; other approaches use container formats

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

#25

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.

A lot of GIFs are use for meme.

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

#26

Earlier quoted context omitted.

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?

Are you sure you're not referring to animated GIFs? The slow FPS rate occurs as they load, and is contained to the GIF itself. Surely a static GIF would not reduce your browser FPS.

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

#27
post #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 l…

Actually, PNG 8 is better for that 1px graphics: http://www.phpied.com/give-png-a-chance/

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

#29
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.

Animated GIF, the royalty-free web video standard that Apple and Microsoft couldn't prevent you from using.

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

#30
And this particular circle is complete.

Of course the patents that were the heart of such controversy are now expired so GIF code is no longer 'not-open' but it has a bad reputation so we don't play with it any more :-).

I like PNG though, the library development, while a bit rocky at first, matured quite nicely and about 5 years ago crossed the point where enough people took the time to figure out how to use it that is dropped into everything that dealt with images. That has been pretty handy.

Post reply on HN