What Is The Future of PNG? 609
miladus writes "The GIF patent (held by Unisys)
will expire on June 20. C|Net wonders
whether that will also mean that PNG "will lose its original
reason for being". Remember Burn All
GIFs? " My hope would be that at this point PNG can stand on its own technical merits, rather then on ideological merits.
PNGs (Score:5, Insightful)
not yet... (Score:4, Insightful)
here's hoping. (Score:3, Insightful)
Let's face it (Score:5, Insightful)
Beta was better than VHS (Score:4, Insightful)
Just because PNG is 'better' than GIF, doesn't mean it'll win.
GIF has such a huge head start...
Its already moribund (Score:5, Insightful)
Since IE apparently won't be getting an update until the next version of Windows, I don't see much changing.
It also doesn't help that creating PNGs with Alpha Channels isn't as easy as it can be in some apps.
no animation support, but... (Score:3, Insightful)
Re:here's hoping. (Score:4, Insightful)
It's a little like MP3 vs OGG, except PNG is far closer to acceptance in general applications than OGG is for music.
Curiously, does IE support more than one alpha channel with PNG? last I looked it didn't, but that was a long long time ago; most everything else did at the time
Technical Merits... (Score:5, Insightful)
It certainly does for me. PNG tends to display colors more accurately than GIF, has cleaner dithering, and has much better transparency than GIF. It also generates smaller files for complex/large images. But, Internet Explorer once again holds us back. IE doesn't do transparency AT ALL for PNG images. It doesn't even use the page color, or white, just a flat 50% gray. Once IE supports PNG properly, a lot more web developers will feel comfortable using it. Curse you and your "standards", Microsoft.
Jasin Natael
what a whore (Score:1, Insightful)
When the serial killer is born that executes corrupt lawyers, leeches and vampires, this Kristine Grow whore should be killed too.
I'm tired of people who just want money standing in the way of real workers, and then claiming that they're blood leeching is beneficial.
Re:Sure (Score:2, Insightful)
Re:problems with PNG (Score:5, Insightful)
PNG is actually about the best lossless image format out there - better compression than TIFF LZW, and just as flexible.
Re:Sure (Score:2, Insightful)
Re:problems with PNG (Score:2, Insightful)
Part of why PNG hasn't been a big hit (Score:5, Insightful)
JPG compliments GIF by providing a way to display high-quality photo images, and you can control the size of the rendered file by deciding how much you're willing to discard. Again, it's supported by every editor and browser, and it's been around since the beginnning.
PNG is a superior format to GIF from a technical perspective, and it's not encumbered by the LZW patent. However, from the perspective of most mainstream users, it doesn't solve a problem that actually affects them (they don't know or care about the Unisys patent issue), it isn't perfectly supported by all mainstream browsers and servers in use today, and it's a johnnie-come-lately to the standards wars.
Like it or not (I think it kinda sucks), most web developers seem to do things one of three ways: if they need small static elements they use GIF, for photos they use JPG, and if they need fancy-schmancy stuff they use Flash. And nobody worries whether or not platforms other than Windows with the latest IE can render their site, anyway. So maybe PNG will slowly become more common - it is a better format for the most part than GIF is, and pretty much all current browsers and servers (going forward - not some of the older versions that are still in use) support it pretty well out of the box. Really, what matters most is the bottom line (especially once the LZW patent is dead) - can PNG produce a better browsing experience for a site's users? If it can, it'll get used. If not, then it's dead.
The unfortunate truth (Score:5, Insightful)
GIF does have full support in IE, and nobody seems to know that the patent even exists. Even those that do rarely care enough to even tell one person.
This is the truth and it sucks. PNG, better in every way, suffers for it.
Re:Sure (Score:5, Insightful)
Personally, I think it's a good thing to have several image formats available with wide support in all browsers. The reason for this is it allows developers to choose which format provides the best results for what they're doing. This means which ones look better and compress better for a certain image. It's definitely a good thing that the patent on GIF is expiring, but it's also a good thing to make sure that PNG doesn't go away, either.
Re:PNG is good (Score:3, Insightful)
So people kept on using GIF's. And very few people used PNG. There is a popular saying "Its not what its worth, its how it is marketed"
Re:Part of why PNG hasn't been a big hit (Score:3, Insightful)
One thing I hear in here this morning is that its unencumbered and lossless compression format. Yes the format will stick around just because somebody will use it for something. However, I don't need a lossless format that often (if ever) on the web. People aren't downloading your image and sending it to others and your probably not going any further then two-three generations when your working on your website. Finally, size matters ladies! I am not going to clutter up a webpage with a 45K file when JPG and GIF can do it 15K or BETTER! I know because its lossless, however, as I have demonstrated I don't need a lossless format to keep a website maintained because I probably have the original artwork in Adobe Photoshop or TIF format and just save it down to JPEG when I am ready to update the website.
So in conclusion, are we ever going to see PNG as a widespread use format...no. The only problem it solved was one of not using GIF and come 11 days from now, its primary reason for existence will be gone.
Useful... for a different purpose (Score:1, Insightful)
The only place on the web I've seen PNGs in actual use were web pages talking about the format. Even Slashdot uses GIFs.
However, I do find PNGs very useful -- for an entirely different purpose. I use them as a lossless format for storing original copies of things like digital photographs... basically, the alternative to zipping up a bitmap.
my prediction (Score:2, Insightful)
In any case, propping up GIF and therefore Unisys is the only logical reason I can come up with that IE still does not support PNG properly.
Any other guesses?
PNG is an in-use MS Office format (Score:5, Insightful)
Re:Sure (Score:3, Insightful)
Your calculation:
GIF : 256 colors
PNG: 256 * 256 * 256 * 256 (r * g * b * a).
PNG/GIF = 256 ** 3 = 16,777,216.
In fact, PNG supports
65536 * 65536 * 65536 * 65536.
So, using your line of thought,
PNG / GIF = 256 ** 7 = 72,057,594,037,927,936.
Re:problems with PNG (Score:1, Insightful)
Size (Score:2, Insightful)
vs.
libPNG+zlib+libMNG - ~1.4 MB of compressed unfinished stuff, age and speed low.
Yea, sign me up!
Seriously, anyone still wondering why it's not built into IE when GIF and JPEG and TIFF work so great is just oblivious. Yes, it's awesome, features galore, does things nothing... er.. few... er.. not too many other things already do very well.
Face it, the patent was the whole point. Read the PNG page, the first 3 paragraphs start with "We are better then TIFF because we have less features" and end with "but you're much better off using JPEG and TIFF for most things"...
Re:not yet... (Score:5, Insightful)
You want to know what REALLY held PNG back? It was Internet Explorer that STILL doesn't do the transparency right. More eople would start using the format right now if the implementation could do what the spec specifies. You see people all the time finding clever ways to make an image look like it blends into the background - which can be a pain in the ass to line up correctly. Imagine if the images could actually do partial transparency... that would make things easier woudn't it? Oh well, it's still a good lossless algorithm to cart images around with - I use it all the time for personal use and on my website.
OT: GIF patch for GD (Score:3, Insightful)
Obviously if you are in a country where the Unisys LZW patent is valid this is illegal, but in eleven days time who's going to care?
Damn Microsoft anyway. (Score:5, Insightful)
Ahem. Anyway, PNG is a format which would be superior to GIF in every aspect. Just a few problems...
1) Photoshop's PNG support sucks. It is entirely due to Photoshop that we have this insipid misconception that PNG is larger than GIF; if Photoshop would only compress PNG's decently, people would realize that this is false. Because unfortunately, most people are too lazy to use an optimizer along the lines of pngcrush.
2) IE/Windows' PNG support is awful. As I said, I believe that this is deliberate on Microsoft's part, given that they already have good PNG-handling code (in their AlphaImageLoader filter) and they simply refuse to use it as their default. Now, it is possible to use JavaScript -the scourge of the Net normally, but this is one of those points where it can be genuinely useful- to make IE apply the AlphaImageLoader filter to PNG images, but no one's managed to make a complete drop-in replacement that will apply to all PNG images im a page yet. It can be done, but it hasn't been done yet.
3) MNG support is nonexistent. Even Mozilla, the only browser which ever supported MNG, has removed it. This is a great shame.
Now, in the meantime, there actually is one use for images which PNG is ideally suited for, and where the transparency problems of IE/Win are not an issue: screenshots. The compression is good enough that particularly when dealing with computer-generated images, the file size isn't that much greater than JPEG, but there is no loss in image quality, which is especially important when grabbing screenshots of games or video. Screenshots are not transparent, as a rule, so IE/Windows has no problems. Unfortunately, it seems that this use of PNG has yet to be discovered by the mainstream.
PNG may also be good for certain types of wallpapeers, such as most computer-generated graphics or hand-drawn animation. Colors in these generally aren't as complex as they are in photographs, and the lossless compression of PNG works well under those conditions. Combine this with the fact that JPEG (the current de facto standard for wallpapers) has an inexplicable and yet undeniable hatred for the color red, and you have something which can better preserve these types of images. Worth considering, anyway.
Another angle on PNG support (Score:2, Insightful)
I say this for 2 fairly good reasons. You can still view PNGs in all major browsers, it really just depends on what kinds of images you are making that will depend on how *good* they look. So if you stick to fairly simple images, a facet for which GIF is/was good for, PNG still is equal among browsers.
Secondly, I feel that PNG has a good foothold is in software development. Programs using some form of libpng seem to use the PNG images very well regardless of how simple or complex they may be. I have seen many a program using PNG for the application e.g. KDE and its childeren. I know I use PNG icons in my applications whenever possible. The two main venues in which i code in support PNG well enough to make my icons look good on screen.
A side note Java (JDK 1.2+) and Carbon support the use of PNG even though Carbon really tries to push tiff's. I do not understand any technical merits of tiff, however i don't like using them because they always seem to be so huge.
PNG Is So Much Better Than PBM, PNM, etc. (Score:4, Insightful)
PNG allows up to 16-bits per channel and has full alpha last time I checked. It can store just about anything, and it's non-lossy.
OTOH, you've got the tools that are supposed to allow you to have only 2n image converters, but the interchange formats for that (PPM, PBM, PNM, others?) seem to always have some shortcoming, and they always have to introduce yet another interchange format! PNG does it all in one neat little compressed format.
So forget about scrapping GIF in favor of PNG. Instead, scrap PPM, etc. in favor of PNG. If it doesn't support it already, PNG could be made to support arbitrary bit depth, and arbitrary channels (inverse hyperkinetic bump blending, or whatever you can imagine).
For the web, in most cases, PNG's capabilities don't add much--unless you are doing something really flashy with your website, in which case you probably use Flash, in which case you have nothing meaningful to say so I ignore you anyway. :)
At any rate, PNGs (at least the RGB channels) are properly supported by all the major browsers, so if something happens to compress better in PNG, or if you really need full color depth in a non-lossy image, why not use PNG?
That about sums it up: GIF--color depth not important, crisp lines important, compression important. JPEG--color depth important, crisp lines not important, compression important. PNG--color depth and crisp lines both important, compression not as important (or the image just happens to compress well with PNG).
In some ways, this is a variation on the "better, faster, cheaper" dilemma.
Now, the scenario that favors PNG may be less common, but it's nice to know we can reach for it when we need it.
Well I'll tell you something (Score:3, Insightful)
If you wanted a moving image in a little loop, it was GIF everytime.
PNG could be better? (Score:4, Insightful)
that it's here to stay. Fortunately, it's a pretty good
format.
What I wonder is if superior compression techniques, e.g.
LOCO/JPEG-LS will be incorporated into PNG? I was one of
the founders of PNG in 1995, but that was eight years of
technology development ago. Has someone tested PNG
against JPEG-LS in various real world applications?
Re:PNGs (Score:3, Insightful)
Try this:
Call them idiots, but most people couldn't really give a shit about the computer sitting on their desk.
You see? It actually makes sense now!
Re:Technical Merits... (Score:5, Insightful)
Whilst I agree with you completely in a technical sense (and in an ideal world), you can't lose site of the practicalities - people are not going to switch browser just to view our site - they'll just go somewhere else. It is essential that our site looks how it is supposed to look to the vast majority of clients, and that, alas, means IE5+.
Re:PNG does have animation: MNG (Score:2, Insightful)
This decision is what hurt PNG significantly. As we see, there was no migration of animated imaging on the web from GIF to MNG. One reason is there was simply no browser support. And why did PNG take so long to get into browsers? It was developed quick enough, but it should have been in every browser version thereafter. It was not. It took a while before support started to show up. And then, there was no animation. So everyone who wanted to put animated images up had to stay with GIF. I think the PNG folks created a fine piece of technology and failed to promote it properly. And it should have had at least basic animation at a level equivalent to GIF for no other reason than to kill off GIF. But they didn't do that and decide to drag things out, and so GIF did not die.
Re:PNGs (Score:3, Insightful)
Then they shouldn't be using them. These are the people that always get viruses, get backdoors installed on their machines so they are DOS nodes, end up as spam relays, etc. If they can't afford Microsoft crap, then they need to install Linux or some other OS. It really isn't that hard to keep your machines up to date.
Seriously, I'm damn near ready to support legislation requiring companies to at least show best-faith effort to secure their networks and keep up with security patches. People that don't are a menace to the rest of us.
Back to the real issue of PNG, if someone can't handle PNG and whines about it, I'd just tell them to upgrade their shit. I don't see any point in coding / working to the lowest ancient common denominator. Doing that restricts you way to much.
Many web sites whine if you are running a really old browser. People that refuse to upgrade (or are just too lazy) will find fewer and fewer sites that function for them. Big examples of this are many banking sites. On this note however, I think it is important for web site designers to adhear to real standards (not just MS proprietary crap) and make sure they can still support non-graphical browsers such as lynx, or screen-readers for the blind.
PNG isn't new, and at this point there is no excuse for any software written within the last 4 years not to support it.
Not out of the box? (Score:2, Insightful)
Well, then you just use MNG if you need animation.
What? Should I tell all users of IE not to visit the site until they have the appropriate plug-in to view the advertisements?
Re:PNGs (Score:2, Insightful)
Actually, Microsoft Internet Explorer was among the first browsers to support PNG image formats (infact, Microsoft Internet explorer pages used to brag about it).
I would also like to point out that while Netscape 4.x was refusing to provide any real support for HTML 4.0 and CSS, the corresponding version of Intetnet Explorer did (this was before people were able to use Mozilla without crashing every second or so). Do you know why? Because, MSIE was trying to make it felt that their browser was better, not just freely given away to kill Netscape (although they were, in reality).
But it all stopped once they had attained what they wanted, total monopoly over the Internet client side. There hasn't been any significant improvement (other than strapping proprietary crap such as smart tags, more ActiveX crap, winDRM with keep-other-OS-out technology etc.) since MSIE 6.0.
By the way, I hate IE, and use Mozilla almost exclusively (except when it is shoved down my throat by my School).
Re:Its already moribund (Score:2, Insightful)
Re:PNGs (Score:1, Insightful)
And that, son, is why you will never rise above the "Shut up and implement the spec" level of the computing world.
Re:not yet... (Score:3, Insightful)
I'm still trying to figure out why this is considered so important. Pretty, or interesting, yes, but *important*?
Re:Slashdot (Score:2, Insightful)
Taco, Hemos, etc, the PNG format won't succeed if people don't USE it. If it is truly and honestly your intention to support the PNG format over the gif format, then put your graphics where your mouth is. In the interim, your well wishes might be in the right place, but will do little or no good in the absence of action.
PNGs work just fine, thank you, even in IE (Score:3, Insightful)
Of course, if you create a 24-bit PNG to compete with an 8-bit GIF, the GIF will be smaller. Otherwise the PNG will be significantly smaller. If you use gamma correction in the PNG, weird things can happen when people have their gamma misconfigured.
In my own tests a year ago, IE 5.5 on Windows and Mac, as well as Netscape 7 and Mozilla (on Windows, Mac and Linux), all browsers did just fine with 8-bit images, 24-bit images, as well as alpha transparency. That last one is really, really cool looking and everyone should try it.
My theory is that few people use PNGs because most of the HTML books out there recommend GIFs because that's what the authors learned and nobody has bothered to correct them.
More info:
Re:Restock Slashcode with PNG icons (Score:2, Insightful)
I am so sick of this disinformation.... (Score:1, Insightful)
One underlying technology of GIF was LZW compression...that was a patented algorithm to Unisys. CompuServe used it as the compression algorithm for GIF, and fell afoul of the patent attorneys.
Re:PNG works in IE to a limited extent (Score:1, Insightful)
The problem is that GIF never went away (Score:3, Insightful)
Despite all the moaning and gnashing of teeth over the GIF patent, every graphics program produced over the past 15 years, including many shareware programs, has included GIF support. The end result was that people were able to continue creating, editing and using GIF files and the average person never even noticed a problem.
Re:Code to use PNGs in IE in a drop-in fashion (Score:2, Insightful)
You can't have it both ways. Either it's in the public domain or you retain your copyright. Pick one.
Re:Technical Merits... (Score:3, Insightful)
Commercial websites get a lot of hits. But there are far, far more websites that are not commercial and I think it's those sites that collectively get the most traffic even if individually they each receive only a few hits. The power to change and influence is not just in the hands of commercial websites largely because it's the commercial websites that are the least interesting. Hmmm, what I'm trying to say is while BestBuy.com gets more hits than your MyFirstHomepage, BestBuy.com gets fewer hits than all of the MyFirstHomepages combined. I'm using your term but I'm including all of the MySecond, MyThird, MyFourth, and MyFifthHomepages too.
Please continue to use GIF's for your corporate splash page if you feel you should. But also consider using PNG's on any sites that you produce for yourself.
Re:BMF kicks PNG's sorry arse (Score:3, Insightful)
Nope. And considering that all I can find on the web is a DOS executable, I'd consider it pretty much worthless.
Re:GIF and PNG are completely different! (Score:4, Insightful)
Err, I would say this belief comes from someplace else, like... the GIF specification. GIF has been designed for 256 colors, as the Global Color Table and Local Color Table (which are made a of power-of-two number of entries limited to 256) clearly show.
The site you mention is the homepage for a hack. Yes, a clever dude can create GIFs that look like they have more than 256 colors... but the fact is, such a GIF is made of many 256-colors images. Totally inefficient, compared to PNG, as the author of the hack admits, at the bottom of his page.
That said, there's another well-known GIF hack, which also uses several images per GIF: animated GIF. Let's not forget that, as the spec says, The Graphics Interchange Format is not intended as a platform for animation, even though it can be done in a limited way.
So, let's hope the nightmare doesn't come true, and that horrible multi-image true-color true-Bad GIFs begin to be popular.
PNG is better than GIF in every technical aspect.
GIF Spec: here [msg.net]