Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Patents Graphics Software

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.
This discussion has been archived. No new comments can be posted.

What Is The Future of PNG?

Comments Filter:
  • Sure (Score:4, Informative)

    by Anonymous Coward on Monday June 09, 2003 @08:10AM (#6148782)
    Because everyone wants 256 color GIFs.

    PNG does everything GIF does, only a million times better.
  • by flend ( 9133 ) on Monday June 09, 2003 @08:11AM (#6148787) Homepage
    GIFs are limited to 8-bit colour depth, no alpha layer etc. etc. PNG is a standardised, open format with support for lossless encoding of full colour graphics with transparencies.

    Saying that GIF becoming patent unencumbered is going to reduce use of PNG is like implying that when the original patents ran out on horses & carriages people gave up their cars and reverted. Ain't gonna happen :)
  • PNG is good (Score:4, Informative)

    by Junior J. Junior III ( 192702 ) on Monday June 09, 2003 @08:11AM (#6148792) Homepage
    I don't know why more people don't use PNG. It's a great format. For photorealistic images JPG is best, but for logos or other types of graphics and drawings, PNG is great. I hope that we start seeing widespread use of vector-based graphics in the near future, though.
  • PNG will stick (Score:4, Informative)

    by sklib ( 26440 ) on Monday June 09, 2003 @08:16AM (#6148828)
    IIRC, GIF really specialized in 256-color paletted images, and any extensions to that along the lines of full 32-bit color were kind of a hack, and were never very popular. PNG, on the other hand, is a great compressed lossless format that seems to cleanly support 4 channels. I've used it plenty when storing graphics for programming purposes, and have never had any kind of problems.

    It seems that the only reason GIF was around in the first place is because computers were slow, and then later (instead of lossy jpegs) for displaying little images with text in them in web pages. Since PNG does that now and does it better, I think there's no reason to ever go back to GIF.

    Sure, the readers and writers might now be legally free or whatever, but anyone who really wanted to use GIFs has been able to do it anyway (it's not like all along Photoshop wasn't able to export, and Explorer and Netscape weren't able to view them), and there is support for better formats pretty much everywhere now, that I don't foresee any changes in the status quo regarding GIF use.
  • Wrong! (Score:5, Informative)

    by brennanw ( 5761 ) on Monday June 09, 2003 @08:18AM (#6148845) Homepage Journal
    If you're getting larger file sizes with PNG, then you're using a program that creates PNG poorly.

    When I converted all the graphics on my site over from GIF to PNG, I saved bandwidth. If I did my comic in GIF instead of PNG, the graphics would be much larger than they are now.

    use pngcrush or some other kind of tool to optimize them if your stuck using an older version of Photoshop (some versions of photoshop have lousy PNG support) or get some shareware or free software program that supports PNG properly.

    JPEGS will still be better for 24 bit color images, but with the right program PNGs will beat out GIFs.
  • by 5prite ( 655586 ) on Monday June 09, 2003 @08:20AM (#6148854)

    GIF supports animation, but it is not supported in PNG.

    I know with MNG, you can do animation plus all advantages of PNG. However in reality, not many people are using MNG yet, which make the support for MNG almost non-existant (even our favorite browser has removed support for MNG due to resignation of its maintainer [mozilla.org], at least for now)

    we still have many things to do to evangeliszed the use of MNG (imagine p0rn ad with full alpha transparency! sigh...) before we can get a full-blown replacement for GIF. Remember newbies will definitely say: `Wow! GIF does animation but PNG does not, PNG is a crap.' Regardless whether GIF has LZW patent or not.

  • by Albanach ( 527650 ) on Monday June 09, 2003 @08:22AM (#6148871) Homepage
    Unisys claim to have a whole host of patents around the world covering the LZW technology.

    You may wish to look at this thread [google.com] on comp.compression

    Just as we in Europe are often affected by US patents, even thought he patent itself isn't valid here, now might be your turn to be affected by patents outside your jurisdiction.

  • by jpr1nd ( 678149 ) on Monday June 09, 2003 @08:23AM (#6148872)
    actually there is a 'partner'-like format to png called mng or multiple-image network graphics. i'm not too sure of how well supported it is but it does in fact exist.

    voila: http://www.libpng.org/pub/mng/
  • by Anonymous Coward on Monday June 09, 2003 @08:23AM (#6148873)
    I have an include file tricking the transparancy into working here [illnation.com] , but this geezer has done it a more elegant way [ntlworld.com]...

    Until IE gets a major update it's the only way to ensure that your PNG stuff works cross-browser. And with PNG's superior colour depth and transpancy there really is no reason to NOT at least toy with using PNG's a little any more...
  • Re:Wrong! (Score:4, Informative)

    by afidel ( 530433 ) on Monday June 09, 2003 @08:24AM (#6148878)
    All 3 of the graphics programs I use routinely creat PNG's that are larger than gif's, now this may not be a problem with the format persee, but it is a problem with the real world implementations that are out there and are being used. It doesn't matter for a hill of beans how cool a format is on paper if the implementations suck, if the graphics programs are creating bloated PNG's and the large leader in the web browser space renders them incorrectly it is unlikely that there will be a rush to adopt the format. Like I said I understand that it is a superior format for some things but for most people there just isn't much incentive to switch.
  • Except, of course... (Score:5, Informative)

    by Gordonjcp ( 186804 ) on Monday June 09, 2003 @08:24AM (#6148879) Homepage
    MNG files, which are animated PNGs.
  • Spelling 101 (Score:2, Informative)

    by Icephreak1 ( 267199 ) on Monday June 09, 2003 @08:27AM (#6148895) Journal
    My hope would be that at this point PNG can stand on its own technical merits, rather then on ideological merits

    The word is "than", not "then". And while I'm here, it's "definitely", not "definately", "your" is not a substitute for "you are" and vice versa, and we certainly don't make plurals of words by tacking on an apostrophe followed by an S. We also don't use the word "where" in place of "were". We also spell "you" fully rather than using "U", and we should read [hop.com] more.

    - IP
  • by J_DarkElf ( 602111 ) on Monday June 09, 2003 @08:27AM (#6148899) Journal
    Of course MNG has even less support than PNG, but thanks to Jason Summer's MNG plugin [entropymine.com] anyone using a Netscape-plugin-compatible user agent or IE can see them.
  • by barcodez ( 580516 ) on Monday June 09, 2003 @08:29AM (#6148909)
    Apple's Quicktime can become the default plug in for PNGs and display them instead of IE within IE. Therefore full advantage can be made of Alpha channels. Obviously not everyone has QuickTime installed.
  • by Anonymous Coward on Monday June 09, 2003 @08:32AM (#6148929)
    Not quite.

    The background used is that saved in the PNG file, which you *can* specify, just like with GIFs.

    And you can use alpha transparency via an ActiveShow style filter. Read this [alistapart.com].
  • Re:Animated PNG (Score:2, Informative)

    by jpr1nd ( 678149 ) on Monday June 09, 2003 @08:36AM (#6148955)
    if you look up the page a little you'll see several posts about animated pngs, called mngs

    more info: http://www.libpng.org/pub/mng/
  • Re:here's hoping. (Score:5, Informative)

    by John_Booty ( 149925 ) <johnbooty@NOSPaM.bootyproject.org> on Monday June 09, 2003 @08:38AM (#6148981) Homepage
    This is such a sore point for me. To me the main raison d'etre for PNG's is that alpha transparency instead of the single-bit transparency that GIF's offer.

    However, IE for Windows supports it *horribly*. If you want to use the alpha transparency feature of PNG's, you've got to jump through a lot of crappy, nonsensical IE-only hoops.

    Here is a rather funny page [homelinux.net] (since the author's disbelief and anger at IE's horrible behavior is palpable) which does a good job of explaining the issue, and supplying a few workarounds.

    It's a shame that IE is so crappy in this regard (and plenty of others, but that's another discussion)... there's no good reason for it. Apparently IE for Mac supports them just fine, btw... so it's not like Microsoft has some official PNG-hating policy, they just simply got sloppy with IE/Win. Another good example why too much share in a given market (in this case, web browsers for Windows) is a bad thing for competition. Why should they bother improving or fixing IE/Win? What's in it for them?

  • by J_DarkElf ( 602111 ) on Monday June 09, 2003 @08:41AM (#6148994) Journal
    ... if saved as truecolour images. What really killed PNG, imnsho, was that the first graphics programs that implemented it simply did not allow users to create indexed PNG files. An 8-bit PNG image is smaller than an 8-bit GIF.

    What many people also seem to forget, is that there is no excuse not to safe your PNG image with maximum compression once you are done editing: there will be no image quality loss.

    And of course anyone seriously creating PNG images cannot do without PNGCrush [sourceforge.net], which can shave off every single bit of bloat. A crushed PNG image will look just as good as the original, but will be only a fraction of its size, and will be a lot smaller than a GIF would (1).

    1: But not smaller than the JPEG. Lossless compression cannot compete with JPEG's lossy compression, and JPEG is still the format of choice for photographic images. For everything else you can and should use PNG.
  • by boutell ( 5367 ) on Monday June 09, 2003 @08:51AM (#6149071) Homepage
    I'm looking into it. The problem is that the GIF patent may apparently still be in effect in some countries for one more year. There is also apparently an IBM patent that may be relevant, although IBM has shown no indications of and has no motive to cause grief for open source projects -- indeed, quite the opposite.

    I do recognize that GIF support would still be a useful thing to have for a lot of people out there and I'll bring it back if I can do that without putting my company in front of the firing squad, legally speaking.

    If I am able to bring it back, I'll no doubt throw in some support for animation, as that's probably the best reason to use GIF at this point. There are neat alternatives though; check out the Ming library, which creates valid Flash animations that the vast majority of browsers can view. (Ming is not Ming32; two very different tools.)

  • Re:PNG is good (Score:3, Informative)

    by cybermace5 ( 446439 ) <g.ryan@macetech.com> on Monday June 09, 2003 @08:54AM (#6149092) Homepage Journal
    JPG is great as long as it's a visibly separate page element, and you don't use them for anything requiring color matching. A lossless format is absolutely required when you need the image to blend with text or page backgrounds. JPEG compression usually skews the color one way or another, and not all rendering engines do it the same way.

    That said, it's much easier to use contrasting colors for page elements and backgrounds. PNG transparency would be great for blending in as long as you don't need a razor sharp edge. Lossy images are great for reducing load times. JPEG with transparency would eliminate the need for lossless images in many cases....

    I'm not a web developer, so don't stone me if I said something wrong.
  • by Trolling4Dollars ( 627073 ) on Monday June 09, 2003 @09:02AM (#6149181) Journal
    As far as I can tell, GIF still has that one leg up on PNG. I haven't seen any version of PNG that can do animations and that is supported within a browser. Ideally, I'd still like to see an open source alternative to Flash that would allow one to create animations with synchronized sound. Oh well... I'm part way through my C++ book now. :)
  • slashdot uses gifs (Score:1, Informative)

    by Anonymous Coward on Monday June 09, 2003 @09:02AM (#6149186)
    ...so I guess png can't stand on idealogical merits, at least not here.
  • Re:Sure (Score:3, Informative)

    by archen ( 447353 ) on Monday June 09, 2003 @09:05AM (#6149204)
    Try reducing the color depth on a png to 8bit (or 4). You will usually get a smaller PNG. I'm not sure how it works in photoshop though, because my friend gets larger PNGs than GIFS. In Paintshop Pro (5) it's always the other way around.
  • by Etyenne ( 4915 ) on Monday June 09, 2003 @09:06AM (#6149216)

    IE doesn't do transparency AT ALL for PNG images.

    No. It understand full-transparency in indexed mode (this is not using the alpha channel). This functionnally the equivalent of GIF. IE throw away the alpha channel entirely, but one of the color in indexed mode can be defined as transparent.

    In The Gimp, right-click, "Image", "Mode", "Indexed ..." get you the menu to make your image indexed.

    But it is true that IE hold us back. Full alpha channel support would do a lot for Web site aesthetic.

  • by Sheriff Fatman ( 602092 ) on Monday June 09, 2003 @09:15AM (#6149275) Homepage

    Much as I feel the same, I don't think that's quite true. Surely there are some cases where it's appropriate to use a light-weight animation and something like .mpg would be overkill.

    Agreed. Animated GIFs can be very useful - it's just that 99% of sites seem to use them purely for advertising and obnoxious eye candy.

    The best use of an animated GIF I've seen is at : http://www.ibanez.co.jp/world/guitar/uv_jem/pages/ uv777p.html [ibanez.co.jp] - the little animation of the selector switch and pickups at the bottom is a fantastic way of conveying a large amount of information in a very small space.

  • Re:Wrong! (Score:5, Informative)

    by rknop ( 240417 ) on Monday June 09, 2003 @09:15AM (#6149277) Homepage

    All 3 of the graphics programs I use routinely creat PNG's that are larger than gif's, now this may not be a problem with the format persee, but it is a problem with the real world implementations that are out there and are being used.

    You should consider another possibility: you don't know what you're doing.

    Do you know the difference between a 24-bit true color and an 8-bit palette image? (This is not an insult or rhetorical question, it's a real question-- you may.) Many image processors and paint programs work naturally in 24-bits. If you save to PNG, they will then naturally save those images in 24-bit format. To save to GIF, though, they must first be converted to 8-bit palette format. With (for example) the Gimp, you have to do this explicitly, so you'll know you're doing it. However, it's possible that some paint programs may do it automatically, without telling you it's been done. This will make for smaller files, but information has been lost. When you read it back in, you will only have 246 different colors in the image, regardless of how many where there originally. If you read the PNG back in, the image will be exactly as you saved it. (Unless you had all sorts of complicated layers, in which case you need an even heavier file format.)

    PNG can save images in 8-bit format, in which case a good implementation will give you an image about the same size or a bit smaller than a GIF image. But they don't have to. GIF images have to be saved that way. Naturally, saving an image in 24-bit format will create a larger file than saving one in 8-bit format. (And, it may be different by more than a factor of 3, for reasons having to do with the compression algorithm.)

    Before comparing the merits of image formats looking just at the file sizes saved, you have to make sure you understand what is being saved.

    JPG is a whole 'nuther ball of wax. That's a 24-bit image format, but it's lossy. That's why they can be so small. But, again, if you read the image back in, it won't be exactly the same; some colors will have been modified slightly. (How much depends on the quality setting you used when saving the JPEG image.) If you're expecting to read and write an image repeatedly, JPEG is a bad format to use, as each time you read and write it, more information gets lost. In that case, you're much better off using PNG images.

    -Rob

  • by doug363 ( 256267 ) on Monday June 09, 2003 @09:16AM (#6149281)
    Mozilla even has MNG support natively.

    Sorry to point this out, but Mozilla just recently dropped its MNG support [mozilla.org] from the trunk until it's a bit more mature and MNG is more accepted.

  • Re:problems with PNG (Score:5, Informative)

    by Fweeky ( 41046 ) on Monday June 09, 2003 @09:17AM (#6149292) Homepage
    large file size- much larger than gif or jpg

    Not really. Some encoders are pretty poor, but an 8 bit PNG can easily rival, if not beat it's gif counterpart.

    Let's pick a quick example:
    -rw-r--r-- 1 freaky None 27382 Jun 9 10:12 states_imgmap.gif
    -rw-r--r-- 1 freaky None 23176 Jun 9 13:28 states_imgmap.png
    -rw-r--r-- 1 freaky None 22619 Jun 9 13:29 states_imgmap_pngcrush.png
    -rw-r--r-- 1 freaky None 21404 Jun 9 13:31 states_imgmap_pngout.png
    The .png is saved from Paint Shop Pro 7, _pngcrush.png using bog-standard pngcrush [sourceforge.net] (which was, btw, identical to pngcrush -brute), , and _pngout.png using pngout [advsys.net].

    If you think this is too simple an image, let's try a screengrab of my desktop, reduced to 256 colours. Feeling lucky?
    -rw-r--r-- 1 freaky None 342508 May 31 02:22 grab_orig.png
    -rw-r--r-- 1 freaky None 136461 Jun 9 13:41 grab.gif
    -rw-r--r-- 1 freaky None 97538 Jun 9 13:40 grab.png
    -rw-r--r-- 1 freaky None 95336 Jun 9 13:42 grab_pngcrush.png
    -rw-r--r-- 1 freaky None 87168 Jun 9 13:44 grab_pngout.png
    Same deal as above. The original [aagh.net] is a 24bit pngcrushed file. None were saved as interlaced/progressive, nor with any transparency.

    I dunno about you, but PNG looks pretty good to me.

    Remember that most PNG's are likely to be 24 bits, as opposed to GIF's maximum of 8, and can even include an extra 8 bits of alpha transparency.

    poor standardization

    What? There's at least one free high quality reference implementation [libpng.org] anyone's welcome to use (even Microsoft), the full specification [libpng.org]'s there for anyone to read, there's a W3C recommendation [w3.org] that's actively maintained [w3.org]. What more standardization do you need?

    Yes, IE doesn't support alpha transparency (something GIF doesn't even have the potential to do; PNG's 8 bit alpha channel is as big as GIF's entire range!), but for general use PNG's a perfect replacement for GIF.

    JPEG can beat both, but only if you don't mind it dropping image quality to do so; not something you want to do generally.

    little exposure

    So what? Most users can just double click on the image file (who's file extension Windows helpfully hides by default) and won't notice the difference. And if some so called "web developer" hasn't heard of it, well, sucks to be him and his clients.
  • Re:here's hoping. (Score:5, Informative)

    by Pig Hogger ( 10379 ) <pig.hogger@g[ ]l.com ['mai' in gap]> on Monday June 09, 2003 @09:18AM (#6149298) Journal
    I was wondering about this just two or three weeks ago, and tested with Mozilla and IE 6. Both of them can display PNG files, but it's only Mozilla that could render the 256-level alpha channel properly. Made for some very neat effects. IE didn't manage the transparency at all. :-(
    You can easily test your browser here [entropymine.com].
  • Animated PNG = MNG (Score:2, Informative)

    by J_DarkElf ( 602111 ) on Monday June 09, 2003 @09:24AM (#6149349) Journal
    Read the other comments on this page. PNG Animation exists, and is called MNG [libpng.org].

    Any PNG image is a valid MNG object, therefore creating MNG animations is a trivial task.

    Alas browser support is non-existant except in certain builds of Mozilla, or by use of a plug-in [entropymine.com]/ActiveX component [entropymine.com].
  • Re:not yet... (Score:5, Informative)

    by DragonMagic ( 170846 ) on Monday June 09, 2003 @09:33AM (#6149421) Homepage
    IE 6, at least on NT-based systems, even screws up the palettes on PNGs.

    I can save a graphic using RGB 102,0,0 and I would have to change it to RGB 115,0,0 or something similar to match the background color attribute of the HTML page.

    IE is horrendous on PNG graphics, still to this day.
  • Re:PNGs (Score:4, Informative)

    by Khazunga ( 176423 ) * on Monday June 09, 2003 @09:39AM (#6149473)
    Reasonably modern?! If I recall correctly, IE4 already has PNG support (minus alpha transparency). IE3 won't fit in the "reasonably modern" category anytime soon.
  • Re:Sure (Score:3, Informative)

    by berzerke ( 319205 ) on Monday June 09, 2003 @09:46AM (#6149529) Homepage

    ...GIF will result in a smaller file size than PNG.



    The problem is mostly likely you are comparing apples to oranges. Remember that, at best, a gif file only has to store 256 colors. A png file, can store 256(Red)*256(Green)*256(Blue)*256(Alpha) colors. All that extra color info takes up space. If you reduce the png to an indexed palette of 256 colors (or less, depending on the gif palette), THEN compare file sizes, you will find the png smaller.



    In addition, there is a program called pngcrush [sourceforge.net] which is also good at reducing the png file size without hurting quality, although it won't work the same magic (in file size reduction) as reducing the palette.

  • Re:PNGs (Score:5, Informative)

    by Verteiron ( 224042 ) * on Monday June 09, 2003 @09:56AM (#6149625) Homepage
    Yeah, and IE6 has the exact same support. PNG, no alpha transparency. The single most-used browser in the world is the only one lacking the most attractive feature of PNG files. Even IE5 on the MAC has alpha support.

    If PNG fails, I think that the blame for that falls squarely in Microsoft's lap.
  • by yerricde ( 125198 ) on Monday June 09, 2003 @10:14AM (#6149794) Homepage Journal

    Reasonably modern versions of IE do not support png.

    Microsoft Internet Explorer for Windows has displayed PNG images since 4.x.

    IE does not support most transparent versions of PNG, except for the binary-transparent version that directly replicates the features of still GIF.

  • by yerricde ( 125198 ) on Monday June 09, 2003 @10:19AM (#6149835) Homepage Journal

    What you're seeing is probably gamma correction. Try saving the PNG image without a gamma chunk (GIMP's Save As... dialog can do this), and your image's #660000 will match your page's #660000.

    If it's not gamma, then it's probably differences in dithering. In high-color mode, some web browsers use different dithering algorithms on flat rectangles (e.g. backgrounds) vs. images. If this is your problem, the problem should show up with GIF images as well. Here, the best policy is to use a binary-transparent PNG, masking out what touches the edges and matches the background. (IE supports binary transparency in indexed images, just not alpha.)

  • by scrawny ( 75842 ) on Monday June 09, 2003 @10:23AM (#6149893)
    The mistaken belief that GIF has a limit of 256 colors probably comes from the way GIF was first used when it came out. In the late 1980's, PC video cards generally supported no more than 256 colors. Image exchanges were becoming popular among BBS systems and the Internet and viewer programs were quickly produced. No one tried or needed to generate images with more than 256 colors since they could not be viewed on anything less than high priced graphics workstations. Programs that converted images to GIF worked up a number of methods to reduce the number of colors to 256 or fewer. Some actually did a very good job. GIF files were constructed with just a single image block, even though the GIF standard placed no limit on the number of blocks. Since there was no use for more than 256 colors, there was no use for more than one image block. This practice became effectively ingrained into the computer culture and eventually everyone "knew" that GIF supported no more than 256 colors. The fact is, the programs that generated GIF files supported no more than one image block, and thus didn't have a means to deal with more than 256 colors. The top image shows that a GIF file really can have more than 256 colors.

    this info and more (including full color GIF) from here [ipal.org].
  • by _xeno_ ( 155264 ) on Monday June 09, 2003 @10:35AM (#6150065) Homepage Journal
    // The following is hereby placed in the public domain. The right to copy and modify is
    // irrevokably granted to all.
    // Copyright (c) Daniel Potter
    //
    // In your onLoad event, call "msiePngHack()" to watch all your PNG images
    // be set to use transparency. (Note that your PNG files must end with
    // a ".png" extension and is case sensetive - this is because the MIME type
    // is not exposed to the JS code. If you have a file that does not end in
    // ".png" then add something like "?f=.png" to the end to fake out this
    // script - and certain versions of IE :) )

    var isIE = navigator.appName == "Microsoft Internet Explorer";
    // if really Opera, this is corrected later

    // Sets a PNG image browser-independently (use for roll over effects etc)
    function setPngImage(img, src) {
    if (isIE && isPng(src)) {
    // need to do PNG hack
    img.width = img.offsetWidth;
    img.height = img.offsetHeight;
    // correct this to point to a blank GIF file
    /* SLASHDOT ONLY: REMOVE THE SPACES IN THE STRINGS. These are intended to prevent "page widening" but screw up the code :) */
    img.src = "http://www.microsoft.com/homepage/gif/1ptrans.gif ";
    img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoade r(sizingMethod='scale')";
    img.filters(0).src = src;
    } else
    img.src = src;
    }

    // checks if the image is a PNG - ends in ".png"
    function isPng(src) {
    return src.length > 4 && src.substring(src.length - 4) == ".png"
    }

    function msiePngHack() {
    // just go through the images collection, and "set" the PNGs using the PNG hack
    // "setPngImage" method to make MSIE happy
    for (i = 0; i < document.images.length; i++) {
    var img = document.images[i];
    try {
    if (!(img.filters)) {
    isIE = false;
    return;
    }
    } catch (ex) {
    isIE = false;
    return;
    }
    setPngImage(img, img.src);
    }
    }
  • PNG-JPG (Score:3, Informative)

    by Some Bitch ( 645438 ) on Monday June 09, 2003 @10:41AM (#6150132)

    I use PNG as my local format for most images simply because I can then fiddle with layers/text/blending/whatever at some time in the future if need be.

    I generally export them to JPG for web use though simply because a quality 80 JPG is STILL smaller than the original PNG by quite some way.

    Also means people can't nick my stuff and change the text (not easily) without asking me (in which case I'll happily email them the original PNGs).

  • Re:Wrong! (Score:4, Informative)

    by Azghoul ( 25786 ) on Monday June 09, 2003 @11:05AM (#6150405) Homepage
    Oh come on now. "As a web designer". You can replace your GIFs with PNGs lacking alpha any time you want. They look FINE on IE.

    Try out http://www.hazardmaps.gov. No GIFs in sight/site (well, maybe some in the legend area).

    You're just lazy if you use GIFs.
  • Drop-in PNG behavior (Score:3, Informative)

    by _Sprocket_ ( 42527 ) on Monday June 09, 2003 @11:14AM (#6150507)


    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.


    Its been done:
    http://www.mongus.net/pngInfo/ [mongus.net]

  • Re:PNGs (Score:4, Informative)

    by _Sprocket_ ( 42527 ) on Monday June 09, 2003 @11:22AM (#6150612)


    Yeah, and IE6 has the exact same support. PNG, no alpha transparency. The single most-used browser in the world is the only one lacking the most attractive feature of PNG files.


    Since there seems to be a lot of coding pages for IE anyway, one can help IE out [mongus.net] where they can't (or won't) do it themselves.

  • by HTH NE1 ( 675604 ) on Monday June 09, 2003 @11:53AM (#6150988)
    An animation would play once, then hang or crash the browser.

    If only GIF support were this bad in major browsers! We could get rid of that accursed animated GIF altogether.

    GIF support was this bad. Maybe you weren't on the net when Netscape 2.0 debuted, but that was when animated GIF support was first introduced (the files still bear the mark in their application control block) along with frames. The combination of animated GIFs and frames was often fatal to the browser, causing major memory leaks and crashes. (And you didn't have the kind of control available today to prevent another site from framing yours.) Before animated GIFs, you had to keep the connection open and use the server-push method to animate images on a browser.

    Netscape toughed it out then to make animated GIFs work (and, alas, frames per their design). There just isn't that impetus to make it work again for MNG.
  • Re:here's hoping. (Score:4, Informative)

    by Mostly a lurker ( 634878 ) on Monday June 09, 2003 @12:24PM (#6151334)
    Results on the browsers I have handy (without reboot)

    Opera 7.11 -- perfect
    Mozilla 1.3.1 -- perfect
    Netscape 7.02 -- perfect
    IE6 SP1 -- totally broken

    No surprises here.

  • Re:PNGs (Score:2, Informative)

    by Cromac ( 610264 ) on Monday June 09, 2003 @12:43PM (#6151512)
    I believe IE didn't support it until recently.

    IE had partial support for PNGs in 1997, and improved support in 2001 and 2002.
    http://www.libpng.org/pub/png/pngstatus.html#brows ers [libpng.org]

  • Re:not yet... (Score:2, Informative)

    by dtfinch ( 661405 ) on Monday June 09, 2003 @12:56PM (#6151643) Journal
    Microsoft blames Adobe Photoshop for the gamma problems. Photoshop stores the wrong gamma value (according to MS) in the PNG and IE obeys it, while most other browsers ignore gamma.

    Save the PNG's from almost any other image editor and they'll look just fine.
  • PNG alpha channel (Score:3, Informative)

    by cybpunks3 ( 612218 ) on Monday June 09, 2003 @01:17PM (#6151896)
    PNG is probably the best format out there for full color images w/alpha channel. It's definitely the smallest in this mode.

    You can import PNGs into Macromedia Flash and preserve the alpha channel.

    What this means is, for instance, you could import an image sequence generated by a rendering package like Lightwave and when you output the Flash, you are left with the equivalent of a JPEG image sequence layer with a perfect alpha channel on the edges. Even though the JPEG introduces blocky artefacting as the compression is ramped up, it doesn't mess up the alpha blending.

    There is nothing else I know of that can do something like that.

    I really wish JPEG had a mode with an alpha channel but it doesn't.

  • Re:PNGs (Score:1, Informative)

    by Anonymous Coward on Monday June 09, 2003 @01:50PM (#6152273)
    Have you noticed that they stress it incorrectly too?

    English:

    "I couldn't care LESS"

    Merikan:

    "I COULD care less"


    Actually, it's:

    English: I couldn't care less.
    American-English: I couldn't care less.
    Idiot: I could care less.
  • by LionMage ( 318500 ) on Monday June 09, 2003 @03:11PM (#6153165) Homepage
    What really killed PNG, imnsho, was that the first graphics programs that implemented it simply did not allow users to create indexed PNG files.

    Ummm, where did you get your information from? I'm one of the PNG spec co-authors, although my involvement with the project tapered off years ago, and I wrote one of the first commercial implementations of PNG. You may have heard of a company called MasterSoft that used to produce document and graphic conversion utilities. When we were acquired by Frame, and then Frame was acquired by Adobe, our products got released for a while as "Adobe File Utilities by MasterSoft." Quite a mouthfull, but accurate.

    My PNG writing code handled indexed (palette based) and truecolor images equally well, and preserved whatever format/color depth was suggested by the original image. As I understand it, my code made its way into several products later on, although it was probably changed.

    One of the utilities that came out early on was a small freeware/open source program designed to take GIF files and convert them to PNG. One of the other spec authors cooked that one up, and it worked very well. It created indexed PNG images by default.

    While it's true that the PNG spec doesn't exactly demand that you write an indexed color image when the source data is best represented with indexed color, my early survey of PNG-supporting applications seemed to suggest to me that most PNG writing code out there generated good indexed color PNG images. So I'm not sure where this notion came from that the first programs to implement PNG didn't write indexed color. That doesn't jive with my experience.

    I have noticed that some applications will generate truecolor PNG images unless you force your application to use indexed color, or downconvert from 24-bit color to indexed color. That's a function of the application software (usually image editing software) not second-guessing the intent of the user. If you've got your application set to do all editing in a 24-bit RGB color space (and some applications will promote loaded images to 24-bit RGB regardless of the pixel format of the original image), don't be surprised when you go to save as PNG and the resulting file contains 24-bit RGB pixels. Downconvert to an indexed color palette before saving. Some application software supports downconversion to indexed color during the save process.
  • by jafuser ( 112236 ) on Tuesday June 10, 2003 @02:00PM (#6162842)
    Parent node contains ASCII art of the famous goatse.cx picture. Probably not work safe for most people... =)

The key elements in human thinking are not numbers but labels of fuzzy sets. -- L. Zadeh

Working...