Slashdot Mirror


GIF Support Returns to GD

g_adams27 writes "Legions of geeks and developers owe a debt of gratitude to Tom Boutell and his "gd" library, which powers the drawing and graphic-generating tools used by dozens of open-source projects. And now, with the expiration of the last Unisys patent on the GIF format, support for GIFs has finally been reinserted in gd. The GIF/PNG/MNG wars may continue, but having more options is good!"

364 comments

  1. Nice GD Info by mfh · · Score: 4, Informative
    I'm not sure if the PHP guys saw this coming or not, but gd_info() (PHP 4 >= 4.3.0, PHP 5) will detect GIF support, so you can tell if you've got the thing set up correctly with a nice little one-liner:

    var_dump(gd_info());

    Some nice soul posted a comment on PHP.net that has what appears to be a great function that does the same thing, but could be used in install scripts and hacked to get it working the way you want:
    /**
    * Get which version of GD is installed, if any.
    *
    * Returns the version (1 or 2) of the GD extension.
    */
    function gdVersion() {
    if (! extension_loaded('gd')) { return; }
    ob_start();
    phpinfo(8);
    $info=ob_get_contents();
    ob_end_clean();
    $info=stristr($info, 'gd version');
    preg_match('/\d/', $info, $gd);
    return $gd[0];
    } // end function gdVersion()

    // The function is easy to use.

    if ($gdv = gdVersion()) {
    if ($gdv >=2) {
    echo 'imageCreateTruecolor() and imageCopyResampled() functions may be used.';
    } else {
    echo 'imageCreate() and imageCopyResized() functions must be used.';
    }
    } else {
    echo "The GD extension isn't loaded.";
    }
    --
    The dangers of knowledge trigger emotional distress in human beings.
    1. Re:Nice GD Info by Greedo · · Score: 2, Informative

      PHP has always support GIF reading. They took the GIF writing support out when Unisys were being dinks.

      --
      Tuus crepidae innexilis sunt.
    2. Re:Nice GD Info by Lehk228 · · Score: 1

      echo "The GD extension isn't loaded.";

      I read that as "The God Damned extention isn't loaded"

      --
      Snowden and Manning are heroes.
    3. Re:Nice GD Info by Anonymous Coward · · Score: 0

      Heh. AOL.

  2. Seeking legal advice by Turn-X+Alphonse · · Score: 1

    I'm going to ask a lawyer to see how a gif/png can violate my rights on the internet in a second. Thanks for the information slashdot editor :)

    --
    I like muppets.
    1. Re:Seeking legal advice by Kphrak · · Score: 3, Insightful

      It's YRO not because GIFs could violate your rights online, but because Unisys, the holder of a submarine patent on GIFs, could. That's one of the main reasons we switched to PNG. Now the patent expired, meaning our rights to use GIFs, without getting the pants sued off us, are back.

      Please increase your clue level before posting. The article is correctly filed.

      --

      There's no sig like this sig anywhere near this sig, so this must be the sig.
    2. Re:Seeking legal advice by Anonymous Coward · · Score: 0

      What's the situation with LZW-compressed TIFF files then?

    3. Re:Seeking legal advice by Anonymous Coward · · Score: 0

      s/one of the main resons we switched/one of the silly reason the tinfoil hat crowd switched/

      I personally never stopped using GIF.

    4. Re:Seeking legal advice by Kphrak · · Score: 1

      I never did either, but that's because I was a GIF user (at the time of the controversy). Most software developers dumped it because Unisys started sending nasty legal letters to a lot of people, not because they were unreasonably paranoid.

      Remember, it's not paranoia if they really are out to get you.

      --

      There's no sig like this sig anywhere near this sig, so this must be the sig.
  3. Did anyone really stop using gifs? by Neil+Blender · · Score: 3, Insightful

    I know I didn't.

    1. Re:Did anyone really stop using gifs? by ChristTrekker · · Score: 1

      I switched to PNG whenever possible. Technically superior in most respects, anyway. No excuse except lethargy to hold me back.

    2. Re:Did anyone really stop using gifs? by Karamchand · · Score: 1, Interesting

      For many of the uses the GIF file was much smaller than an equal looking PNG file, even when using tools like pngcrush.
      So while PNG might be technically or whatever superior and though I appreciate PNG for many uses as well I am still glad GIF has returned to GD.

    3. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Photoshop makes large PNGs, but I've only come across a handful of times when PNGOUT couldn't produce a smaller PNG than the GIF, and they were all in cases of VERY small GIFs (under a couple hundred bytes generally). On anything bigger than that, PNG was almost always smaller.

    4. Re:Did anyone really stop using gifs? by ron_ivi · · Score: 2, Insightful
      Only those people with no respect for intellectual property rights kept using them.

      I find it interestingly ironic that most commercial software disrespected IP-rights by continuing to include GIFs, while the open source community showed far more respect for intellectual property law by going through great effort to avoid violating such patents.

    5. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      ghostscript removed the patented stuff years ago, hope they put it back :)

    6. Re:Did anyone really stop using gifs? by ecklesweb · · Score: 1

      PeopleSoft's version 8 of PeopleTools discontinued support for GIF, and it's a web-based application! The funny thing was that you could create an Image object in PeopleSoft using a GIF file as the source, but the Application Designer tool obstinately refused to *display* the GIF. So basically you were designing your apps with no graphics until you previewed on a web browser. JPEG, PNG, BMP, and other formats displayed fine in the same Application Designer tool.

      I put a call into their "Customer Care" center and never got a reasonable response. I'll be very interested to see if they add GIF support back in Application Designer with the next PeopleTools release.

    7. Re:Did anyone really stop using gifs? by Neil+Blender · · Score: 0

      Only those people with no respect for intellectual property rights kept using them.

      This is Slashdot.

    8. Re:Did anyone really stop using gifs? by Dr.+Evil · · Score: 1

      Or... commercial software paid the royalties to create GIFs, just as they pay royalties to use other technologies.

      There really isn't a lot of software out there which needs to create gifs.

    9. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 4, Insightful

      For 'many' of the uses? Hardly. If you save a PNG as 24-bit, even though it has 8-bit or fewer colours, even pngcrush (or the better such program, pngout) can't help much. Saving a PNG properly, THEN using pngout will almost always produce a smaller filesize than GIF. It's _exceedingly_ rare that you'd have a smaller GIF - usually only when you're using a 1 pixel transparent GIF for a web site spacer graphic, which you _should_ know how to avoid doing by now, anyway, if you're anything resembling a well-informed web developer.

      Bah. A pox on GIFs!

      Now if only Adobe could get off their lazy crappy-programmer asses and put proper PNG compression in Photoshop so we wouldn't _need_ programs like pngcrush & pngout.

    10. Re:Did anyone really stop using gifs? by proj_2501 · · Score: 1

      They disrespected intellectual property laws by paying license fees to Unisys?

    11. Re:Did anyone really stop using gifs? by kirun · · Score: 1

      Don't forget that GIF is always indexed colour, while PNGs can do truecolour. For a fair fight, make sure you use the right colour mode. GIF does win for very small images though, because it has smaller headers.

      The real use here is animation. Imagine making growing bar effects from live data. Presentations always need more shiny things :)

      --
      I'm scared of numbers that can't be written as a fraction. It's an irrational fear.
    12. Re:Did anyone really stop using gifs? by davidu · · Score: 1


      The big dawgs bought licenses bro.

      -davidu

      --

      # Hack the planet, it's important.
    13. Re:Did anyone really stop using gifs? by rusty0101 · · Score: 1

      As an occasional graphics developer/creator, I chose not to create graphics in the GIF format.

      As a web browser user I did not choose to block GIF files, disable display of them, or attempt to contact the webmasters of sites that did choose to create and distribute GIF files to see if they held a licence from Unisys, or if the graphics creation tools they were published by developers who were paying royalties to Unisys.

      Did you?

      -Rusty

      --
      You never know...
    14. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0


      I sure didn't pay any license fees, yet I did include GIF output support from my commercial animation program since 1999.

    15. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      How does one save a .png properly? Mine are huge and I know I'm doing somethign wrong in gimp...

    16. Re:Did anyone really stop using gifs? by Ark42 · · Score: 4, Informative


      GIF may be indexed color, but since the animation extension is supposed to allow for multiple palettes that DO NOT overwrite the previous palette, as well as the ability to have each frame render a small piece of a larger picture with mostly transparent background, you can "draw" a true color GIF.

      See gif-with-32697-colors.gif
      If your browser draws it right, it will look like this

      Note that the GIF is 180K and the PNG is 14K, but they are both truecolor.
      Unfortunately, many non-animated programs will only display the first frame, so you only see the upper left corner, and some will improperly overwrite the palette of every frame with the current frame's palette, causing the image to pulse widely as it draws and end up in the wrong colors.

    17. Re:Did anyone really stop using gifs? by jonknee · · Score: 3, Informative

      So I guess you don't see images on Slashdot? Pretty much all graphics on this site are .gif.

    18. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      And Slashdot kept using them, despite running numerous stories about PNG and numerous people offering to convert the graphics to PNG for them if they'd agree to use them.

    19. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      I don't use the Gimp, so I can't answer that one for you.

      In Photoshop, if your image has 8-bit colours or fewer, change the mode to 'Indexed,' and that drops it from 24-bit down to 8-bit. Then when you 'Save for the Web,' you need to re-select the colour depth you want most of the time (stupid Photoshop will usually assume full 8-bit even if it knows there are fewer), then you get down to the exact-size palette you need. Play around with dithering colours to use even smaller palettes (perceptual works quite well most of the time), and THEN save. After saving, use pngcrush or pngout (pngout is usally better, often by quite a bit), and you'll wind up with some tiny PNGs.

    20. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      This wasn't because of any actual moral superiority. It was an attempt to wipe GIFs out by replacing them. It was a matter of pride to turn up your nose at those evil, patented, GIF files and wave the PNG banner to show how hip you were. Patent, eh? We'll show you! And your little file format, too!

      The fact that GIFs continued in use until the patents expired and it became a moot point, while PNG still remains something of a sideline, shows just how powerful and innovative the open source community really is.

    21. Re:Did anyone really stop using gifs? by Tet · · Score: 1
      For many of the uses the GIF file was much smaller than an equal looking PNG file, even when using tools like pngcrush.

      Ahem. You mean "in virtually no cases will GIF result in a smaller filesize than the equivalent PNG". The one common case[1] where it does is for a 1x1 transparent image, but there are only two uses for that anyway:

      • Spacing
      • Web bugs
      Transparent images for spacing are a nasty hack, and CSS gives you much better control over positioning anyway, and web bugs are no great loss. So essentially there's no reason to use GIF any more.

      [1] Another is a few web images that have a 5 or 6 bit colour palette. PNG only supports powers of two, so would use an 8-bit palette for the same image. The size increase is generally compensated for by the better compression rates, so PNG still produces comparable image sizes. But I wish they'd thought more about common uses for the format when designing the spec, and then PNG would have been able to make substantially smaller images.

      --
      "The invisible and the non-existent look very much alike." -- Delos B. McKown
    22. Re:Did anyone really stop using gifs? by kirun · · Score: 2, Informative

      That's quite a neat trick, and almost completeley useless. Well done :)

      --
      I'm scared of numbers that can't be written as a fraction. It's an irrational fear.
    23. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Indeed. I challenge anyone to show us a GIF that can't be made smaller as a PNG. Certainly there are such images, but you won't come across many non-trivial examples.

      It's really too bad that PNG has gotten a bad rep in some circles for "not compressing as well as GIF", when the problem was user error.

    24. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0
      Gimp doesn't seem to have good png optimization, however, pngcrush rocks ;-) Enjoy.
    25. Re:Did anyone really stop using gifs? by Jugalator · · Score: 1

      Yes, I also used GIF if there was a doubt PNG wouldn't be supported in the application the graphics was aimed for. As for all internet graphics, I switched to PNG there, and only used GIF if the image had to be transparent due to IE's infamous PNG transparency bug.

      Actually, IE doesn't even seem to support the "GIF style" transparency (i.e. not alpha channels) for PNG images, where you set a color to act as the transparent color. It looks like it works correctly until you notice there's often a slight lightness change for the "transparent" color in the rectangular area (the bounding box) the PNG image uses compared to the underlying background color. Annoying... :-(

      --
      Beware: In C++, your friends can see your privates!
    26. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      cool! It seems strange that gimp wouldn't have good png optimization though... weird...

    27. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Yes, I also used GIF if there was a doubt PNG wouldn't be supported in the application the graphics was aimed for. As for all internet graphics, I switched to PNG there, and only used GIF if the image had to be transparent due to IE's infamous PNG transparency bug.

      So what you're saying is: "Yes, I didn't."

    28. Re:Did anyone really stop using gifs? by Jugalator · · Score: 1

      So what you're saying is: "Yes, I didn't."

      No, what I'm saying is "Yes, I did, with some exceptions (like on the internet)".

      --
      Beware: In C++, your friends can see your privates!
    29. Re:Did anyone really stop using gifs? by buckhead_buddy · · Score: 1
      Interesting technique and quite clever in its circumention of the gif color limit by using multiple frames, but...

      On Safari 1.2.2, it starts as a red splotch in the top right corner of a black field. Then the color surges down and to the right creating a smooth image much larger than 256 colors until the complete frame is covered. But this takes about 5+ seconds to complete and is plainly visible to the user.

      When the finished picture is dragged to the desktop, it makes a .gif file set to open with the standard Mac OS X Preview app. If done so, it makes a massive 173 frame document. One cane scroll down to the last frame to see the "finished" document and export the frame to the clipboard or another format (e.g. TIFF).

      A technique like this is neat, but unless you are simply adamant at using the .gif format there seems to be little advantage. The browsers that break the animation will annoy many viewers. Using it as a form of download protection (e.g. on a porn site) is easily circumvented. And the visible five+ second display time as the browser tries to "animate" the picture to the screen would become as annoying as the < flash > tag if used in anything but a trivial page decoration.

      Saying that true-color _can_ be done in a .gif is not the same as saying that such a thing _should_ be done.

    30. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0
      So I guess you don't see images on Slashdot? Pretty much all graphics on this site are .gif.

      So I guess you don't read posts before replying to them. Try again, it's below.

      As a web browser user I did not choose to block GIF files, disable display of them, or attempt to contact the webmasters of sites
    31. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      I find it interestingly ironic that most commercial software disrespected IP-rights by continuing to include GIFs, while the open source community showed far more respect for intellectual property law by going through great effort to avoid violating such patents.

      No, companies making applications like Photoshop licensed the patents. Open Source projects don't have that luxury.

    32. Re:Did anyone really stop using gifs? by Citizen+of+Earth · · Score: 1

      Saving a PNG properly, THEN using pngout will almost always produce a smaller filesize than GIF. It's _exceedingly_ rare that you'd have a smaller GIF

      Actually, PNG has the particular issue that the colormap is not compressed. They should have just compressed the whole stream. They should also add an option (required by all readers) to use BZIP2 compression, since it does a much better job than GZIP on most images and the BZIP2 library is just as open and has the same interface as ZLIB.

      Also, GIFs can use any number of bits per pixel, whereas PNG is restricted to 1, 2, 4, 8, and 16, so if you have (typically) anywhere between 17 and 127 colors, GIF has a head start in the uncompressed pixel data.

    33. Re:Did anyone really stop using gifs? by Ark42 · · Score: 1


      Oh I never said it should done at all, just look at the difference in file sizes. Its just one of neat things you could do with GIF if you wanted, that PNG can't do. Not particularly useful though, no.

    34. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      That's interesting info that I hadn't heard before. Nevertheless, properly-saved & compressed PNGs are still almost always smaller, if not much smaller, than their GIF counterparts. Just think how much better it would be if those issues were addressed. That'd be nice. Maybe time for a refresh of PNG, and hopefully once the software-makers implement that, they can finally implement the now four-year-old JPEG2000 standard. *sigh*

    35. Re:Did anyone really stop using gifs? by Pieroxy · · Score: 2, Insightful

      The problem is not user error. I use Photoshop and ImageReady for my icons/pictures processing purposes. I have very rarely encoutered an icon that would be smaller with PNG. So I still stick to GIF for most purposes.

      Now maybe the PNG compresor is a piece of crap in IR. How am I supposed to know? I'm not going to try 100 different compressors.

      A format that has no decent popular implementation will fail. No matter how good it is. This is a MAJOR problem for PNG. And it is not a user error.

    36. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0
      You're wildly guessing, aren't you.

      When did someone pay for a GIF license, which AFAIK was never even attempted to be licensed until very late in the process.

      Sure, some companies have technology-sharing agreements with UniSYS, but most of those who didn't used GIFs long before they ever paid a dime.

    37. Re:Did anyone really stop using gifs? by qwasty · · Score: 1

      "...using a 1 pixel transparent GIF for a web site spacer graphic, which you _should_ know how to avoid doing by now, anyway, if you're anything resembling a well-informed web developer."

      The Pixel - Reloaded details a novel technique for layering a stretched 1 pixel transparent gif over a CSS background image, and then applying an image map to it to create the illusion that elements underneath the stretched gif were clickable links. So, there are still uses for transparent 1px gif's, but just not in for layout.

    38. Re:Did anyone really stop using gifs? by LordHunter317 · · Score: 1

      Actually, PNG has the particular issue that the colormap is not compressed. They should have just compressed the whole stream. They should also add an option (required by all readers) to use BZIP2 compression, since it does a much better job than GZIP on most images and the BZIP2 library is just as open and has the same interface as ZLIB.
      Excpet that bzip is a block compression algorithm, meaning the files have to be multiples of a fixed sized. For web images, you just negated the advantage you got from increasing the compression anyway.

    39. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      True, but the size of a 1px PNG is not that much larger than a 1px GIF. A 1px PNG can get down to 106 bytes. Not really worth bothering with GIF just for that, IMO.

    40. Re:Did anyone really stop using gifs? by ModernCelt · · Score: 1

      Choosy mothers choose Gif!

    41. Re:Did anyone really stop using gifs? by Yaa+101 · · Score: 1

      There is a thing called indexed mode. Transform your ping into that before saving and it's a 8bit gif compatible.

    42. Re:Did anyone really stop using gifs? by Fweeky · · Score: 1

      optipng automatically reduces colour depth where possible. Seems generally better than pngcrush too.

    43. Re:Did anyone really stop using gifs? by proj_2501 · · Score: 1

      and they didn't slap you with a suit? what a bunch of sissies.

    44. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 1, Informative

      only when you're using a 1 pixel transparent GIF for a web site spacer graphic, which you _should_ know how to avoid doing by now, anyway, if you're anything resembling a well-informed web developer.

      well only poser web developers say that.

      a good web dev will build pages that will correctly display on ANY browser. some older and portable browsers built into hardware like cellphones and pda's as well as the first LG fridge or the 3com audrey as well as other web appliances dont render CSS right. so you need ot position with a 1x1 transparent gif. it's smaller, loads damned faster than the css code and is across the board compatable.

      only posers that code only for the bleeding edge pan the old tricks.

      do you get the point I am making?

    45. Re:Did anyone really stop using gifs? by kirkjobsluder · · Score: 1

      It seems like any time compression is brought up, somebody brings touts bzip2 as the uber-compression scheme.

      Bzip2 provides a modest to moderate decrease in file size at the expense of huge increases in compression/decompression time. A nice comparison can be found at http://www.elis.ugent.be/~wheirman/compression/. Gzip seems to occupy a nice sweet-spot between file size and avoiding thumb-twiddling.

    46. Re:Did anyone really stop using gifs? by Jeff+DeMaagd · · Score: 1

      Only those people with no respect for intellectual property rights kept using them.

      I think you are sweeping a pretty broad stroke there. You leave a heck of a lot of variables and nail it down to one knee-jerk category. Very few people are aware of the UNISYS issue, despite many of these people having some amount of respect for IP. I suppose that you might say that ignorance isn't an excuse, but very intelligent people might never stumble on this.

      while the open source community showed far more respect for intellectual property law by going through great effort to avoid violating such patents.

      Mostly by hosting GIF extensions, add-ons and patches on servers outside of the patent jurisdictions, such that people inside those patent jurisdictions can still download them?

      I think it is leaving out that not a whole lot of programs have good PNG support. I don't know anyone that would switch to GIMP from Photoshop just to get PNG, especially as Adobe licences a lot of necessary technologies that can't go into GIMP, and that's not mentioning GIMP's less efficient interface and slower operation.

      I think PNGs decode noticibly slower too.

    47. Re:Did anyone really stop using gifs? by qwasty · · Score: 1

      I think a 1px gif is about 50 bytes, why use a 100byte PNG for that? I can't think of even one good reason.

    48. Re:Did anyone really stop using gifs? by aardvarkjoe · · Score: 1
      Quite interesting on that page is the "ranking" section that lets you choose a network speed, and ranks the different algorithms according to time that it takes to compress/transmit/decompress a file (which is a typical usage of compression utilities, and probably one of the best measures of how effective it would be for web graphics.)

      However, it doesn't take into account the fact that, for typical web distribution, the compression phase only has to be run once, and should probably not be counted. In that case, it looks like bzip2 slightly edges out gzip. Also, the default page is set up for a 1000kbit connection, which is probably faster than most internet connections -- which favors gzip. And, of course, it doesn't give benchmarks for image data, which might be different than results for source code.

      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    49. Re:Did anyone really stop using gifs? by kirkjobsluder · · Score: 1

      However, it doesn't take into account the fact that, for typical web distribution, the compression phase only has to be run once, and should probably not be counted. In that case, it looks like bzip2 slightly edges out gzip. Also, the default page is set up for a 1000kbit connection, which is probably faster than most internet connections -- which favors gzip. And, of course, it doesn't give benchmarks for image data, which might be different than results for source code.

      While the compression phase only has to run once, the decompression phase is what worries me. According to the tests, the decompression phase for bzip2 runs 5-8 times that of gzip. Multiplied by a half-dozen images per page, that is a lot of work to render a page.

      Bzip2 is great for applications where I can sit and twiddle my thumbs for a few seconds (or 20 minutes as the case may be). But gzip still rules the roost for interactive applications.

    50. Re:Did anyone really stop using gifs? by david.given · · Score: 1
      Wow. That's one of the most evil, despicable, grotesque and just plain ugly abuses of the web I've ever seen. You are a sick and twisted person, and I duly honour you...

      (Oh, yes, and I will forward it on to various friends of mine who are going to look at it and say ewww. Just try and stop me!)

    51. Re:Did anyone really stop using gifs? by swerk · · Score: 1

      By nature, a Free Software project has to be more honest about how it works. If it's not legal to include something, the folks who maintain the code are pretty likely to know that, and see to it that the offending material doesn't get put in, or gets taken out if it's there already. That's a large part of why the whole SCO thing is such a joke.

      Commercial software vendors probably also know about those legal issues, but it's not like submarine patent owners can go grepping the code for some given algorithm. Plus, in the case of Adobe-type companies, the GIF licensing fee would be a drop in the $600-per-photoshop bucket.

      Then there's the rest, regular folks who download stuff and run it for free, legal or not, who don't necessarily know and surely don't care about software patents, as long as they can draw their animated dancing hamster for their webpage, they don't care how it works or who thinks who owns what.

      Had GIF compression never been patented, I wonder what might be different today. Maybe the folks who had to rip it out of their projects, the folks who had to deal with new libraries, the people who tried to spread the word about how GIFs shouldn't be used, would have been able to accomplish other things in all those fragments of time. I can't imagine a parallel non-LZW-patented universe being worse off, but I can imagine it being better. The same is true for any given software patent.

    52. Re:Did anyone really stop using gifs? by Victor_Os · · Score: 0

      Well, there is a hack that allows you to have transparent pngs in IE5.5 and up. It uses a filter introduced in ie5.5 to load the aplpha.
      There are a few catches though - it needs a 1x1 gif and you need to specify the sizes for the png files.

      http://webfx.eae.net/dhtml/pngbehavior/pngbehavior .html

      I am using this for my own sites and it worsk well.

      Cheers
      --Victor

    53. Re:Did anyone really stop using gifs? by aardvarkjoe · · Score: 1
      While the compression phase only has to run once, the decompression phase is what worries me. According to the tests, the decompression phase for bzip2 runs 5-8 times that of gzip.
      Well, yes -- but the decompression time is still miniscule compared to the transmission time. If your compression is 7% more effective, then you decrease the transmission time by 7%. From their statistics, it looks like that's an overall win.

      I did, however, forget that these standings also rely on the speed of the system used; if you're using a slower computer, the advantage of quicker decompression becomes more important. It looks to me like, on a typical broadband internet connection, bzip2 is probably better on a modern system, while gzip might win on sub-GHz machines.

      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    54. Re:Did anyone really stop using gifs? by afd8856 · · Score: 1

      No you're not. A page designed with CSS is a lot more compatible with a hardware like a cellphone or a pda, because CSS can downgrade very well. Specifying alternate style sheets, you can have the page rendered acording to the preferences of the browser. Check out Opera to see some cool use of user style sheets.

      About the size: let's say you have a 10 kb independent HTML file, with table layout, and I have a 5 kb HTML file and 10 kb CSS file. Guess who's gonna win in size at the third page loaded on the website? The css file will get cached by the user agent.

      Also, a CSS website is a lot more accesible to people with disabilities (you insensitive clod!). The webpage and screen readers will have a clear path across the page, the menus will become clear and you may even insert some specific options for the audio rendering with CSS.

      --
      I'll do the stupid thing first and then you shy people follow...
    55. Re:Did anyone really stop using gifs? by afd8856 · · Score: 1

      A! forgot something. CSS allows you to separate the content from the presentation. Easier to read as page structure...

      --
      I'll do the stupid thing first and then you shy people follow...
    56. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      Do you know if it compresses as well as pngout? If not, it might be easier to add that to pngout.

    57. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 4, Interesting

      > only posers that code only for the bleeding edge pan the old tricks
      > do you get the point I am making?

      Yep, I do. People like YOU are posers. CSS is hardly 'bleeding edge.' People like YOU are what's holding back 4-year-old standards from becoming requirements. The point you're making is that you're a shortsighted idiot with little real comprehension of the impact of the things you do.

    58. Re:Did anyone really stop using gifs? by base_chakra · · Score: 1

      If you save a PNG as 24-bit, even though it has 8-bit or fewer colours, even pngcrush (or the better such program, pngout) can't help much.

      Why would you want to save an image with less than 256 colors as PNG-24 when this is precisely what PNG-8 is for? Of course PNG-24 yields a larger file--it uses a non-indexed 24-bit palette.

      It's _exceedingly_ rare that you'd have a smaller GIF - usually only when you're using a 1 pixel transparent GIF for a web site spacer graphic

      It's not nearly that extreme. My tests show that GIF/89a tends to produce smaller files for images up to about 103px square, except when dithering is involved. I never use spacer images, and file size determines whether I use GIF or PNG-8 for non-dithered 8-bit images. At least 30% of the website icons I create are smaller as GIFs.

    59. Re:Did anyone really stop using gifs? by NeoSkandranon · · Score: 1

      Only those people with no respect for intellectual property rights kept using them.

      You mean someone who'd rather use a format everyone knows and nearly everyone supports over another format,which while arguably better, has spotty support in an overwhelmingly large portion of browsers?

      --
      If you can't see the value in jet powered ants you should turn in your nerd card. - Dunbal (464142)
    60. Re:Did anyone really stop using gifs? by ChristTrekker · · Score: 1

      Does the Gimp have an option to set the palette size for PNG? And why hasn't someone there incorporated the same scheme pngcrush uses to minimize file sizes?

    61. Re:Did anyone really stop using gifs? by scottj · · Score: 1
      I find it interestingly ironic that most commercial software disrespected IP-rights by continuing to include GIFs, while the open source community showed far more respect for intellectual property law by going through great effort to avoid violating such patents.
      I believe that you misunderstand the issue. The vendors of commercial software that produced GIFs were forced to license the GIF patents from Unisys. They were not in any way disrespecting the rights of Unisys. In fact, Unisys was benefitting (monetarily) from the commercial use of the GIF IP.
      --
      .-.--
    62. Re:Did anyone really stop using gifs? by scottj · · Score: 1

      I chose to use commercial software that was licensed to create and display my GIFs. There was no need to contact any webmasters over the ordeal. It was very straightforward.

      --
      .-.--
    63. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 3, Informative

      > Why would you want to save an image with less than 256 colors as PNG-24 when
      > this is precisely what PNG-8 is for?

      Dude, that's what I'm _saying_. Many people don't realize that, and thus save their images with a higher palette than is necessary, and then complain that PNG doesn't compress as well as GIF. Photoshop doesn't tell you that when you save your file - you have to check the colour depth and change yourself. These same people also don't seem to use the post-creation compression tools to get the real compression benefit that can be had with PNG.

      > At least 30% of the website icons I create are smaller as GIFs.

      Are you compressing your PNGs with pngout or pngcrush? (pngout usually works much better) What kind of colour depth are we talking here?

    64. Re:Did anyone really stop using gifs? by fymidos · · Score: 1

      This is not about respect for ip, this is a simple problem with the patenting system. Specifically it does not consider the network effect regarding software usage. A company shouln't be allowed to wait untill the cost of *not using* the patent is more than the cost of paying the same company. This is simply wrong.
      A close to the "network effect" example would go like this:
      Imagine i have a patent on space travels, and wait untill after the first spaceship launches for a 100 year trip to Alpha Centauri to claim monthly license fees from US govt This is just too close to blackmailing to be legal...

      --
      Washington bullets will simply be known as the "Bulle
    65. Re:Did anyone really stop using gifs? by john_smith_45678 · · Score: 1

      Imagemagick offered GIF support.

    66. Re:Did anyone really stop using gifs? by john_smith_45678 · · Score: 1

      Wow, wonder if slashdot paid licensing fees...

    67. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0
      Perhaps he should have said "most users of..." - considering that most of that software was probably warez or equivalent (company bought photoshop, and the guy used it for personal use).

      Those users had no legal license to use the patented technology even if the software author did.

    68. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0
      "You mean someone who'd rather use a format everyone knows and nearly everyone supports over another format"

      Next you'll argue that this gives you the right to make DVD software without paying Dolby, MPEG-LA, or the DVD Consortium licenses?

      That exactly what's meant by "no respect for intellectual property".

    69. Re:Did anyone really stop using gifs? by mlk · · Score: 1

      Yeap.
      But not just cos of the patent stuff. PNGs are smaller.

      --
      Wow, I should not post when knackered.
    70. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Yeah, as /. are is da man when it comes to standards.

      Ohh wait, I'm a scarky AC twat taking this piss out of a site still using HTML 3.2!

    71. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Post the images, and then let us compress.

    72. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      A page designed with CSS is a lot more compatible with a hardware like a cellphone or a pda, because CSS can downgrade very well

      Unfortunately, this is a point where W3C theory and practice diverge. Lots of crappy embedded devices do a good job with Netscape-style HTML 3.2, not so good with CSS. You might like it, but its a fact.

      Also, a lot of the CSS Showcase sites actually degrade to smaller screens much worse than tables do (because tables reflow and CSS-P seems to have some problems with that.) So, you either have to disable all CSS or hope there's an alternate stylesheet.

    73. Re:Did anyone really stop using gifs? by jkantola · · Score: 1

      Firstly, this is just the kind of hacker gimmick I can't seem to resist.

      Secondly, Firefox displays both images perfectly.

      Thirdly, ***FIREFOX*** DISPLAYS BOTH IMAGES PERFECTLY.

    74. Re:Did anyone really stop using gifs? by BiggyP · · Score: 1

      I certainly did, for the simple reason that PNG is a far superior format, I only ever use GIF when i need to produce animated images for general web use.

    75. Re:Did anyone really stop using gifs? by Trejkaz · · Score: 1

      so you need ot position with a 1x1 transparent gif. it's smaller, loads damned faster than the css code and is across the board compatable.

      Let's see. With the transparent gif:

      <p><img src="spacer.gif" width="20" height="1" alt=""/>Indented text.</p>

      With CSS:

      <p style="text-indent: 20px">Indented text.</p>

      Oh, and that was without trying to save space. If I really wanted to indent arbitrary text a lot, I would have a class="indent" which is specified in one place.

      Also, I'd love to know what you intend to do when your client asks you to increase all the indents. Update 500 image tags? No thanks!

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    76. Re:Did anyone really stop using gifs? by mrchaotica · · Score: 1

      Wouldn't dithering, especially non-repetitive dithering, increase the size of the image too? By that I mean that instead of "AAAAAAAABBBBBBBB" you have "AAABAABABABBABBB" -- it seems obvious to me that the latter would take up more space. It seems like there would be a tradeoff between reducing color depth and minimizing dithering. Am I wrong?

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    77. Re:Did anyone really stop using gifs? by Citizen+of+Earth · · Score: 1

      PNGs are still almost always smaller, if not much smaller, than their GIF counterparts.

      The place where there's a difference is in small icon-type images (under 3K) where the uncompressed palette is a significant piece of the whole file.

    78. Re:Did anyone really stop using gifs? by base_chakra · · Score: 1

      Photoshop doesn't tell you that when you save your file - you have to check the colour depth and change yourself. These same people also don't seem to use the post-creation compression tools to get the real compression benefit that can be had with PNG.

      The Save for Web feature in the Creative Suite versions of Photoshop, ImageReady, and Illustrator makes these controls readily available, including manual palettization, etc. It's true that older versions of these products had either little or no support for PNG-8, but CS users shouldn't need external compression tools.

      Are you compressing your PNGs with pngout or pngcrush? (pngout usually works much better) What kind of colour depth are we talking here?

      ImageMagick and Photoshop CS, but I've only compared results in Photoshop CS. The results are consistent up to 32 colors. It's inconclusive, but for me LZW seems to require less overhead for files 104px and 32 colors.

      At this point, external optimizers might be superfluous after Photoshop's web optimization. Adobe seems to like to improve on standard algorithms whenever possible (compare its noise-based color reduction to similar standard algorithms). I don't know whether or not Adobe's PNG support is directly derived from zlib/libpng, but zlib/libpng isn't credited in the PNG module's "About" box.

    79. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      I'm sure it _does_ reduce the efficiency, but the palette reduction seems to more than make up for it in my experience.

    80. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      I'm _using_ CS (version 8) of Photoshop and ImageReady, and I still see _significant_ savings by using pngout. As far as I can tell, Photoshop CS (8) is no better at PNG compression than its predecessors.

      Yes, the 'Save for Web' (ie: dropping into ImageReady) makes the colour depth change feature more accessible, but it's not much smarter than Photoshop itself as far as auto-selecting the correct colour depth. You'll often find that it'll _say_ a certain colour depth, but if you look at the colour chart, you see lots of little black squares with dots in them - indicating it hasn't *really* switched the colour depth. I've tested it - it's really NOT yet changed until you reselect the colour depth you want in the select box. Then you'll notice the colour chart will _only_ contain the colours you're actually using. If you don't know about that bug, you'll think you saved at a certain colour depth when you really didn't.

      And THEN you can use pngout to really _compress_ it.

    81. Re:Did anyone really stop using gifs? by Glenn+R-P · · Score: 1

      ImageMagick binaries offered only *uncompressed* GIF support.
      Now that the patent has expired everywhere, LZW compression has
      been enabled.

    82. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      The vast majority of images I create for web use are under 3K, and I still see savings by using PNG and compressing with pngout.

    83. Re:Did anyone really stop using gifs? by JFitzsimmons · · Score: 1

      I understand the point you are trying to make, but a multifile search and replace would probably do the trick.

      --
      Beware he who would deny you access to information, for in his heart he dreams himself your master. -Anonymous
    84. Re:Did anyone really stop using gifs? by Trejkaz · · Score: 1

      Not if you're using transparent gifs as the only way to space everything on an entire web site, it won't. You will be searching and replacing all the ones which don't need to be changed. :-)

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    85. Re:Did anyone really stop using gifs? by CaptKilljoy · · Score: 1

      That is a darned nifty trick! Pardon me if this is a stupid question, but what tool did you use that allowed you to craft it?

    86. Re:Did anyone really stop using gifs? by ljaguar · · Score: 2, Informative

      Opera displays it fine too.

    87. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      I'm not going to try 100 different compressors. you dont have to you should be able to try onlky 30 or 40 to finds a goos onr you satr a morin

    88. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Transform your ping

      "PNG". It's only pronounced "ping".

    89. Re:Did anyone really stop using gifs? by Yer+Mom · · Score: 1
      "correctly displays" != "looks exactly the same"

      If you're trying to make things look exactly the same on NS4 and modern browsers (like I have to do for this site I'm working on ATM, yech) then yes, you're stuck with tables and spacers. If you accept that NS4 users and the like will have something that looks different, but is still usable, then CSS is much more likely to produce the right result. And it's less likely to get borked when a new browser comes along, or if somebody disabled uses a screen reader (and, as we've already seen on the Odeon article the other week, not shutting disabled people out helps avoid legal issues, at least here in the UK).

      --
      Never mind Spamassassin. When's Spammerassassin coming out?
    90. Re:Did anyone really stop using gifs? by VGPowerlord · · Score: 1
      > Yep, I do. People like YOU are posers. CSS is hardly 'bleeding edge.' People like YOU are what's holding back 4-year-old standards from becoming requirements. The point you're making is that you're a shortsighted idiot with little real comprehension of the impact of the things you do.

      I could have sworn it was Microsoft and their 80%+ browser share that were holding back 4-year-old web standards from becoming requirements.

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
    91. Re:Did anyone really stop using gifs? by SanGrail · · Score: 1

      Ah, maybe not 'bleeding edge' but it's still a teensy bit broken in places.

      Not to mention stupid fiascos like CSS size keywords. :P

      I still have a lingering urge to beat whoever decided it should start with xx-small, or did that pre-recommendation to go up in 150% increments, repeatedly over the head with a blunt object.

      --
      ---- I've fallen, and I can't get up.
    92. Re:Did anyone really stop using gifs? by john_smith_45678 · · Score: 1

      What does that mean? I never had any problems using Imagemagick on GIFs. They always appeared to be compressed (before and after operations).

    93. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      One can only imagine the financial devastation caused to Unisys by all those big-time open source apps refusing to use an industry standard file format!

    94. Re:Did anyone really stop using gifs? by Threni · · Score: 1

      > A company shouln't be allowed to wait untill the cost of *not using* the patent
      > is more than the cost of paying the same company

      Assuming we can agree on an example of a fairly awarded patent, then I don't see why the patent holders should be under any obligation to do anything. Surely it's their invention, therefore it's up to them to decide who to prosecute, and when.

      www.fishkeeping.co.uk

    95. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 1, Informative

      Thirdly, ***FIREFOX*** DISPLAYS BOTH IMAGES PERFECTLY

      I realise I will get excommunicated by the /. zealots for saying this, but..

      ***INTERNET EXPLORER*** DISPLAYS BOTH IMAGES PERFECTLY TOO

      (leastways, it does on my system - Windows XP, IE6.0.2800)

    96. Re:Did anyone really stop using gifs? by Bert64 · · Score: 1

      But on modern hardware bzip2 is comparable in speed to gzip a few years ago, and in a few years from now bzip2 will be considered fast and we'l have some slower and more powerfull compression scheme to replace it.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    97. Re:Did anyone really stop using gifs? by ChristTrekker · · Score: 1
      Are you compressing your PNGs with pngout or pngcrush? (pngout usually works much better)

      This thread was the first I'd heard of these tools. I crushed the 3 main images on my site: background, logo, and favicon and got 36%, 8%, and 5% savings, respectively, with no discernible loss of quality. Great! If only pngout were OSS so I could get it on my platform. I have neither Windows nor Linux/x86 available.

      Why oh why isn't Gimp's PNG saving routines optimized like this???

    98. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      I wish I could log in but I can't, so I'm posting AC.

      It's not that people like him are posers. It's that people like him have requirements that the website has to work on the customer's computer.

      The customer, guaranteed, does not run Linux. The customer, slightly less guaranteed, does not use a standards compliant browser (80%+ chance of MSIE these days).

      On the plus side, nobody really uses Netscape 4.x anymore and THAT was the big standards breaker, not Internet Explorer. IE supports most of the CSS spec. More than enough to get by. I can build a site that works perfectly in MSIE 5.5+, Netscape 7.x, and Mozilla (anything) but doesn't display AT ALL in NS4. Supporting Netscape was what required all the really lame hacks that broke the standards, but the REASON for it was that the customer had to be able to buy a hat from the e-commerce system or it wasn't worth anything at all.

      Now, with standards compliant browsers, it's not any different. The customer still has to buy a hat and the people paying for the website still expect it to run on the customer's machine. It's slightly improved because MSIE doesn't suck *as* badly and not *as* many people use Netscape.

      I'm not saying the guy has an excuse. I'm saying that web development has never been an exercise in developing to standards. It's been an exercise in delivering information to customers. And it still is. Standards or not.

      Of course, posts like that is why I hate OSS Nazis in the first place. You can't just call someone a poser and a loser because they don't use perfect W3C compliant CSS. If you want to convince someone of something, insulting them is the worst way to do it.

      If you just want to flame someone... you've got aggression problems and should get help. Asshole. :)

      -alan

    99. Re:Did anyone really stop using gifs? by Fweeky · · Score: 1

      When I last played with them optipng produced typically smaller files than the other two. I noticed some minor possible advantage piping the output of optipng into pngout iirc, but nothing really significant.

    100. Re:Did anyone really stop using gifs? by Tumbleweed · · Score: 1

      I hadn't heard of that, thanks for the tip; I'll check it out.

      I plan on doing some extensive testing of PNG compression issues within the next few months; when the article is ready, I'll notify the Slashdot collective (assuming it's approved, of course :).

    101. Re:Did anyone really stop using gifs? by Anonymous Coward · · Score: 0

      Anyone have the list of commercial companies (and/or open-source groups) that actually paid Unisys?

    102. Re:Did anyone really stop using gifs? by Eraser_ · · Score: 1

      I would bet most commercial software images were done in Photoshop, or similar. Photoshop costs what it does because they do license all the patented technologies inside the application, as well as develope their own. Have you seen the list of patents when you start Photoshop? It goes on forever, and is followed by things like PANTONE(R). None of that comes free.

      If you bought photoshop, and then saved a GIF, you paid Unisys for your use of a GIF. Adobe just packages it into a pleasantly easy to use interface.

  4. Finally. by Iesus_Christus · · Score: 1

    I've been looking forward to this for a while. It's certainly been annoying to have a common web graphics format protected by patents, limiting its usability by free software. Now if only the same could be done with some other file formats that we might find useful...

    1. Re:Finally. by fred+fleenblat · · Score: 1

      One notable victim is xv, which has also been held back because of the Unisys GIF patent nonsense.

      While xv's functionality is limited compared to other image viewers and editors, it's a classic utility program that enabled millions of college students to...ummm...view downloaded images in their dorm rooms at night when no-one else is around...

    2. Re:Finally. by pauljlucas · · Score: 1
      It's certainly been annoying to have a common web graphics format protected by patents ...
      While it may be annoying to you, the entire point of a company patenting anything is the hope that it will become common so they can make money from it via licensing. There's no money to be had (and thus no point) in patenting anything that will have no use. Your annoyance level doesn't factor into it.

      Fortunately for you, some people were sufficiently annoyed so as to invent other graphics formats (JPEG, PNG) that completely circumvented the GIF patent (as opposed to merely complaining about one's annoyance) and the world is better for it. If the mousetrap you want to use is patented, build a better mousetrap.

      ... limiting its usability by free software.
      Free software has nothing to do with anything in this case. Both free and non-free software makers have to obtain a license just the same.
      --
      If you reply, do so only to what I explicitly wrote. If I didn't write it, don't assume or infer it.
    3. Re:Finally. by Arthur+Dent+'99 · · Score: 1
      I'm sorry, I think XV is a great program, but it hasn't been held back by the GIF patent nonsense, it's been held back by plain inertia.

      The last release of XV, 3.10a, was on December 29, 1994. The last patch for XV on the site that you linked to above was September 16, 2000.

      Perhaps this small snippet from his website says it all:

      October 1995 - present

      Left Penn to devote my full efforts toward the xv project, or dicking around with a Sony Playstation, as the case may be.

      Looks like he's been having fun with his Playstation for nine years!

    4. Re:Finally. by Anonymous Coward · · Score: 0

      Looks like he's been having fun with his Playstation for nine years!
      Well then. Let's all chip in $150 for a Playstation 2 to keep him occupied for another 9 years!

  5. PHP by mfh · · Score: 1

    It would be nice to have this story filed under PHP as a subtopic, authors!

    --
    The dangers of knowledge trigger emotional distress in human beings.
    1. Re:PHP by Greedo · · Score: 2, Informative

      PHP isn't the only thing to use GD, although I'm guessing it's the most popular one.

      --
      Tuus crepidae innexilis sunt.
    2. Re:PHP by scottj · · Score: 2, Insightful

      PHP is definitely not the only user of GD. Heck, GD is a C library. There are a lot of C apps out there that use it.

      Personally, I've only used GD via perl and the many perl libraries that use it, primarily GD.pm.

      --
      .-.--
  6. nice by Ari_Haviv · · Score: 0, Redundant

    but I'd rather see widespread adoption of PNG

    --
    Join Team Mozilla #38050 Folding@home
    1. Re:nice by fiannaFailMan · · Score: 1
      but I'd rather see widespread adoption of PNG
      Why?
      --
      Drill baby drill - on Mars
    2. Re:nice by Ari_Haviv · · Score: 1

      because it's more advanced technology

      --
      Join Team Mozilla #38050 Folding@home
    3. Re:nice by black+mariah · · Score: 1

      Flash is more advanced than PNG. I want to see Flash on more websites...

      --
      'Standards' in computing only impress those who are impressed by things like 'standards'.
    4. Re:nice by Ari_Haviv · · Score: 1

      that's why we have something even more advanced called firefox with image blocker and optional ad-block :)

      --
      Join Team Mozilla #38050 Folding@home
    5. Re:nice by 0x0d0a · · Score: 1

      Flash is more advanced than PNG.

      Flash serves a different purpose than PNG does.

      Flash is primarily useful as a format for storing animated vector graphics.

      PNG and GIF are both intended for storing raster images with areas of contant color or simple patterns.

      PNG is almost unilaterally better than GIF. It can store an alpha channel, it can store gamma information, it supports more than 256 colors, it does a good job of detecting certain types of corruption, etc.

      GIF tends to yield nasty dithered images from people who haven't considered PNG.

    6. Re:nice by Anonymous Coward · · Score: 0

      No its not.

      Where is its degradability...

      Ohh wait, your a fully abled body person, why the fuck should you give a shit about anyone else?

      SVG is where its at, the text is still readable, even if the graphics are viewable.

    7. Re:nice by fiannaFailMan · · Score: 1
      Flash is primarily useful as a format for storing animated vector graphics.
      *sigh*

      See my journal.

      --
      Drill baby drill - on Mars
    8. Re:nice by elegie · · Score: 1

      Widespread adoption of the PNG standard would be a good thing. The significance of the GIF saga is not that the GIF format was encumbered. The significance is that the GIF format was intended to be open but was unexpectedly found to be encumbered (it was too late to eliminate the encumbered technique because of backwards compatability.) It is likely that the GIF format will always be remembered for these happenings.

      The PNG format has more than just lossless compression. It has a format designed to thoroughly check the file integrity, among other things. The PNG standard is designed to allow enhancements to the format without having different format versions; it would be interesting to see how that works out. Even the pronounciation ("ping") was standardized.

    9. Re:nice by Ari_Haviv · · Score: 1

      ok that's a completely different issue that has nothing to do with png vs gif so easy there. You are right though that svg is where its at and mozilla will be the first browser to support it. I know because we already have mozilla builds with svg :)

      --
      Join Team Mozilla #38050 Folding@home
    10. Re:nice by 0x0d0a · · Score: 1

      Interesting; I'll still stick with my point.

      Consider the context -- someone was suggesting Flash as an alternative to PNG. I was pointing out that PNG is used for static raster graphics. While you *could* do static raster graphics using .swf, it'd be pretty inefficient.

      I wasn't really saying that Flash could *only* be used for vector animations.

      Personally, I dislike animated *and* web pages with code. :-)

  7. Unisys by Anonymous Coward · · Score: 2, Insightful

    I bet nobody in Unisys (at least nobody high up) even knew about this happening ... otherwise they would have realized they weren't making money in the last year and put it in the public domain and made a press release etc.

    Shows you that a corporation like Unisys isn't dynamic. RSA on the other hand, was making money off their patent and decided that there's value in releasing it into the public domain prior to the patent expiration date.

    1. Re:Unisys by Anonymous Coward · · Score: 0

      Unisys will still take your money. I know at least one image software developer that still refuses to add GIF support becuase of this sort of bunk.

  8. obligatory warning by Anonymous Coward · · Score: 4, Funny

    Beware of Geeks bare in GIF's.

    1. Re:obligatory warning by iantri · · Score: 1
      I think you mangled the joke a bit.. I've heard it as:

      "Beware of geeks bearing GIFs!"

      Which of course has a completely different meaning (and contains a pun).

    2. Re:obligatory warning by Anonymous Coward · · Score: 0

      yea, i took it to teh new level of pun-of-a-pun, since "bare in" sounds similar to "bearing".

  9. Re:moo by okmnji · · Score: 1

    You missed by a minute, buddy. Need to be a bit quicker with the Ctrl+R. Or get a liff.

  10. Gif is only good for animation by wheany · · Score: 4, Insightful

    The only thing gif does better than png is animation. Okay, on some rare occasions, gif compresses better. But most of the time, you have no reason to use gif instead of png.

    1. Re:Gif is only good for animation by rjamestaylor · · Score: 3, Insightful

      Beta was and is better than VHS. Anyone understanding video would choose Beta over VHS. Millions of average people began buying VHS machines because they were cheap. Millions more began buying VHS machines because they would play other people's tapes. Beta, the superior technology, lost to the cheaper, "good enough" VHS because of market adoption. Internet Explorer has and will always have GIF support. Its PNG support is less than optimal. Got something you want everyong to see? Use GIF.

      --
      -- @rjamestaylor on Ello
    2. Re:Gif is only good for animation by wheany · · Score: 1

      Even IE users can see pngs, with full alpha. There have been at least two workarounds for IE that don't break other browsers. The one I have used unfortunately requires javascript, but those average users have not turned js off, so it's not a big deal.

      Even when they do have js turned off, they can still see the pngs on the page perfectly if you don't use the alpha channel.

    3. Re:Gif is only good for animation by Chairboy · · Score: 1

      Backwards compatibility. Ever view a site that uses PNG on a 4.X generation browser?

    4. Re:Gif is only good for animation by spacefrog · · Score: 1

      Perhaps for applications software or an internal web application, yes.

      But most of the time, you have no reason to use gif instead of png.

      Most of the time, I need transparency in IE.

    5. Re:Gif is only good for animation by eht · · Score: 1

      Beta had one crippling limitation, it's play length, Betamax was limited to 60 minutes where VHS allowed for 120 minutes, and could use a technique to make the video look worse but allow for a 4 hour playtime, which any movie could fit into, you wouldn't want to flip over your DVD in the middle of the movie, neither did people want to swap another tape into their Betamax machines

      Betamax did dominate the broadcast market where there are still many being used today. Sort of akin to DAT being used in professional studios.

    6. Re:Gif is only good for animation by Ark42 · · Score: 2, Informative


      IE supports 256color PNG files with a single palette transparency with no JS or special crap like is required to support the 32bit PNG's alpha channel.
      The PNG is usually smaller too.
      Unless you need animation, PNG is just better.

    7. Re:Gif is only good for animation by jwymanm · · Score: 2, Informative

      You can display PNGs with full alpha transparency, both as backgrounds of a block element and inline with an image tag, without using any javascript, behaviors, or a second image.

      The following CSS and html code shows how:

      For background:

      <style>
      #mydiv {
      width:Xpx; height:Xpx;
      background:url('mydiv.png');
      filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='image.png');
      background:expression('none');
      }
      </style>
      <div id="mydiv"></div>

      For inline:

      <style>
      #mydiv {
      width:Xpx; height:Xpx;
      filter:progid:DXImageTransform.Micros oft.AlphaImageLoader(src='image.png');
      }
      #myimg {
      width:Xpx;height:Xpx;
      filter:progid:DXImageTra nsform.Microsoft.Alpha(opacity=0);
      }
      </style>
      < div id="mydiv"><img id="myimg" src="image.png"></div>

      Of course you'll want to put the proprietary code within IE comment conditionals [link here]. You can remove the expression syntax from background if you put it within the IE conditional. Fix any obvious errors in the above code that /. introduced.

    8. Re:Gif is only good for animation by IoN_PuLse · · Score: 1

      Psst....MNG is the animation version of PNG...

    9. Re:Gif is only good for animation by Frank+T.+Lofaro+Jr. · · Score: 1

      Ironically Beta lost due to restrictive patent licensing. VHS was licensed much more liberally.

      --
      Just because it CAN be done, doesn't mean it should!
    10. Re:Gif is only good for animation by srussell · · Score: 1
      Internet Explorer has and will always have GIF support. Its PNG support is less than optimal. Got something you want everyong to see? Use GIF.

      IE has supported PNGs for a long time. It just doesn't support transparency in PNGs.

    11. Re:Gif is only good for animation by Trejkaz · · Score: 1

      With the IE7 hack, of course, you can fix that bit too. :-)

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    12. Re:Gif is only good for animation by herc_mk2 · · Score: 1
      IE has supported PNGs for a long time. It just doesn't support transparency in PNGs.

      I think you mean "It doesn't support the alpha channel in PNGs." There's a difference between alpha and transparency, you know.

      And only supporting transparency (not full alpha) would be like only displaying images in green, and then claiming that images were being displayed in color.

  11. Ancient technology by AKAImBatman · · Score: 2

    GIFs are great for animations, but I really do prefer PNGs at this point. While it really isn't that big of a deal, PNGs are simply smaller and look better. If we could just get Microsoft to fix Internet Explorer, we'd have a new defacto standard for all non-photographic images.

    1. Re:Ancient technology by wheany · · Score: 1

      Fortunately there are some workarounds for full alpha support in IE that don't break other browsers.

    2. Re:Ancient technology by AKAImBatman · · Score: 1

      Full Alpha, or just transparency? I'd be happy with just transparent regions. I'm in no rush to play with translucencies.

    3. Re:Ancient technology by wheany · · Score: 1

      Full alpha.

      Using this code:
      <!--[if gte IE 5.5000]>
      <script type="text/javascript" src="fixiepng.js">
      <![endif]-->

      Include this javascript file to your page.

      This was possibly taken from http://homepage.ntlworld.com/bobosola/pnginfo.htm

    4. Re:Ancient technology by ncc74656 · · Score: 4, Informative
      Full Alpha, or just transparency?

      Full alpha...here's one script that implements it, and you use it something like this (assuming that you've loaded the script somewhere further up in your page):

      <span id="foo">
      <img src="foo.png" alt="Foo" title="Foo" width=320 height=240>
      </span>
      <script type="text/javascript">
      DisplayPNG("foo", "foo.png", 320, 240, "Foo");
      </script>
      --
      20 January 2017: the End of an Error.
    5. Re:Ancient technology by Anonymous Coward · · Score: 0

      it would be better if linux & X.Org woke up and introduced transparency like it was 1999 in their X server

    6. Re:Ancient technology by Intosi · · Score: 1

      You can also use this hack. if you use the technique described at that site, you only have to add a .htc file to your site, and an entry in your stylesheet to enable proper alpha for .png files, without changing the IMG tags...

      --

      Intosi

    7. Re:Ancient technology by Anonymous Coward · · Score: 0

      yeah, lets add loads of pointless extra markup to do something that should be supported straight off.

    8. Re:Ancient technology by FuzzyBad-Mofo · · Score: 1

      Yay, let's return to the glorious days of yore, when browser-specific hacks ensured web monkies a full-time position maintaining unmaintainable code! Not.

    9. Re:Ancient technology by Dracolytch · · Score: 1

      Non photographic?
      Is there a reason why you wouldn't use PNG for photographs as well? Since it's a lossless format, and compresses really well, it sure beats JPEG.

      ~D

      --
      This sig has been enciphered with a one-time pad. It could say almost anything.
    10. Re:Ancient technology by AKAImBatman · · Score: 1

      There's no reason why you couldn't use a PNG for a photograph, it's just that most people avoid them because they're so large in comparison to a JPG. Originals are usually kept in an editor format like PSD or XCF.

    11. Re:Ancient technology by wheany · · Score: 1

      Are you saying that adding three lines of code to a template and adding one javascript file to a site is unmaintainable? Especially since it doesn't break any other browsers. Other browsers just see a three-line comment.

    12. Re:Ancient technology by Anonymous Coward · · Score: 0

      If I had mod points, you'd get an offtopic for your propaganda sig.

    13. Re:Ancient technology by Anonymous Coward · · Score: 0

      So don't use alpha PNG's. From what I understand, IE supports color-mask style transparency, which is all GIF ever had to begin with...

    14. Re:Ancient technology by Patik · · Score: 1

      Or you could just use Sleight. Much easier to implement.

    15. Re:Ancient technology by dreadlock9 · · Score: 1

      I tried using scripts like that on my site, and some of my friends were telling me that my site was crashing their IE. So for now I've given up on using fancy alpha transparency tricks. The next time I start using graphics in my layout I will provide a pretty option, and IE users can click on something to try to use the PNG filters.

    16. Re:Ancient technology by AKAImBatman · · Score: 1

      No, it doesn't. That's the problem.

    17. Re:Ancient technology by mlk · · Score: 1

      For orginals sure, but in my tests, PNGs are about x2+ the size of a JPEG, even after going through PNGOUT/pngcrush.

      Plus the main photo editors (Photoshop for example) PNG support sucks (as it creates over sized PNGs).

      Both (PNG/JPEG) have a place in the www, its just not the same place.

      --
      Wow, I should not post when knackered.
    18. Re:Ancient technology by mlk · · Score: 1

      Check out IE7

      --
      Wow, I should not post when knackered.
  12. IBM by bunburyist · · Score: 1

    Doesn't IBM still have patent time remaining on GIF and what about that Sonny Bono thingy? couldn't Unisys come back and get the patent again?

    1. Re:IBM by MikeJ9919 · · Score: 1

      The "Sonny Bono thingy" would be the Copyright Term Extension Act. Notice the title.

    2. Re:IBM by Tassach · · Score: 4, Informative
      "That Sonny Bono thingy", properly known as the Sonny Bono Copyright Extension Act, extends the duration of copyrights, not patents. If you're unsure of the difference, do some research.

      Since it's a duplicate patent and should never have been issued in the first place, IBM would be idiotic to let it get anywhere near a courtroom.

      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    3. Re:IBM by FuzzyBad-Mofo · · Score: 1

      You're confusing patents and copyrights. At least in the US, copyright is a (supposedly) time-limited protection offered automatically to artistic works and "intellectual property". Patents are the formal registration of inventions with the Patent Office, and are protected for 20 years after the date of filing. There is currently no renewal procedure for patents.

      I don't know enough about the IBM LZW patent to comment on it, but logic dictates that it must be substantially different from the Unisys patent, or they wouldn't have been able to receive a separate patent.

    4. Re:IBM by Anonymous Coward · · Score: 1, Insightful

      I think the poster was trying to ask whether congresscritters can make a similar law and grant Unisys control again.

      So the question is .. can the IP "rights" transfer back into Unisys hands at a later date if Congress so decides.

      It appears to me the answer is yes (thanks to cooperation of the supreme court).

    5. Re:IBM by Tassach · · Score: 1
      I think the poster was trying to ask whether congresscritters can make a similar law and grant Unisys control again.
      No. Congress cannot make a law which retroactively re-activates an expired patent; the Constitution explicitly forbids them from doing so:
      Article I, Section 9, Paragraph 3:
      No Bill of Attainder or ex post facto Law shall be passed.
      "ex post facto" is Latin for "after the fact". When a copyright or patent expires, the work goes into the public domain, making it legal for everyone to use or copy it without restriction. That legal right cannot be retroactively revoked one it has been given. However, according to Eldred v. Ashcroft, an UNexpired patent or copyright can have it's term extended an unlimited number of times. Despite the fact that the Founding Fathers unambiguously declared that patents & copyrights shall have a limited term, the Rhenquist court has ruled that an infinite term is Constitutional as long as you get it on an installment plan.
      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    6. Re:IBM by Anonymous Coward · · Score: 0

      Since it's a duplicate patent and should never have been issued in the first place, IBM would be idiotic to let it get anywhere near a courtroom.

      But IBM is apparently using it in the case against SCO. I don't have a reference, but it was pointed out in a comment on a previous ./ story about Unisys's last patent on LZW expiring.

    7. Re:IBM by tepples · · Score: 1

      Congress cannot make a law which retroactively re-activates an expired patent

      Then what was the Uruguay Round Agreements Act, which restored copyright to thousands of foreign works?

      Despite the fact that the Founding Fathers unambiguously declared that patents & copyrights shall have a limited term, the Rhenquist court has ruled that an infinite term is Constitutional as long as you get it on an installment plan.

      Not exactly. The Supreme Court called the term extension constitutional but hinted that a third extension before, say, 2025 might produce a pattern of repeated extension that isn't so constitutional.

    8. Re:IBM by DarkEdgeX · · Score: 0, Redundant

      It's already been repeatedly extended. Copyrights only used to last something like 14 years (not 14 years from the authors death, but 14 years from the time of creation). Since then it's been extended, then based upon the authors time of death, then extended in reference to that at least twice now.

      My impression is the same as yours, that the Supreme Court will not give the Congress a blank check to keep extending copyright, but at the same time, we have no idea which Supreme Court Justices will be around by the time this issue arises again.

      --
      All I know about Bush is I had a good job when Clinton was president.
  13. PNG is still better by Anonymous Coward · · Score: 1, Informative

    In every way, except for animation. And before you say something about IE, PNG8 works fine in IE, and gives you everything that GIF does (minus animation).

    1. Re:PNG is still better by sdkaneda · · Score: 2, Informative

      IE6 botches gamma correction on PNG8 images. Try making a PNG8 file and a GIF filled with #B0B0B0 and place them on a web page with a background colour of #B0B0B0. In IE, The PNG displays as a slightly different shade of grey.

      --
      #roses { color: #ff0000; } #violets { color: #0000ff; }
    2. Re:PNG is still better by Anonymous Coward · · Score: 0

      What tool are you using? I don't see any gamma correction.

    3. Re:PNG is still better by sdkaneda · · Score: 1

      Photoshop CS. The same PNGs display perfectly in Moz and Opera.

      --
      #roses { color: #ff0000; } #violets { color: #0000ff; }
    4. Re:PNG is still better by Anonymous Coward · · Score: 0

      That's it then. Run it through a tool like pngout. It'll strip out the gamma information and produce a much smaller file.

    5. Re:PNG is still better by sdkaneda · · Score: 1

      Ken's Labyrinth!

      --
      #roses { color: #ff0000; } #violets { color: #0000ff; }
  14. Very nice! by garglblaster · · Score: 1
    That's cool info. Maybe the excellent GDChart Tool can now be upgraded to use the latest GD library..

    It used to rely on a very old gd lib for gif support.

    --

    perl -e 'printf("%x!\n",49153)'

  15. What format war? by xxxJonBoyxxx · · Score: 2, Insightful

    Can you show me a mainstream, modern browser that doesn't understand both GIF and PNG?

    1. Re:What format war? by troggan · · Score: 1

      Ok, it's not a "modern" Browser, but it's mainstream:
      Internet Explorer...it still has problems with Alphas in PNG.

    2. Re:What format war? by wkitchen · · Score: 5, Informative

      Not complete lack of support, but IE's PNG support is partly broken. Mostly in that it doesn't support alpha transparency, though all other major browsers do. And that's a real shame because it's a very nice feature. This alone would give PNG a clear advantage over GIF if it wasn't for the fact that the only major browser that doesn't support it happens to account for over 90% of the user base.

    3. Re:What format war? by Anonymous Coward · · Score: 0

      He said "modern". IE is the least modern browser on the market.

    4. Re:What format war? by Aidtopia · · Score: 1
      the only major browser that doesn't support it happens to account for over 90% of the user base.

      I'd just like to take this opportunity to point out that IE5 and IE6 together account for just over 80% of the market. (http://www.w3schools.com/browsers/browsers_stats. asp) They're slipping!

    5. Re:What format war? by Anonymous Coward · · Score: 0

      w3schools is not an accurate measure. Google shows IE usage in the mid-90's.

    6. Re:What format war? by angrytuna · · Score: 1

      I'm not sure your statement's entirely true. It requires some extra code, but PNG24's can be properly rendered in IE >= 6. Microsoft article on the subject is located here. I've mocked up a sample usage here. The fake button has a partially transparent "erasure" section that does seem to blend with the colored box behind it. Note that the sample image does NOT show up in Mozilla, at least on my version. The point is not that it's nice or proper or pleasant, just that it's technically possible.

      --

      It is a solemn thought: dead, the noblest man's meat is inferior to pork.

    7. Re:What format war? by Ari_Haviv · · Score: 1

      that's why he said modern browser :)

      --
      Join Team Mozilla #38050 Folding@home
    8. Re:What format war? by Anonymous Coward · · Score: 0

      My friends mac G5 can't display PNGs in any browser or app.

      Maybe he needs to install something extra, but he's had it over a year and hasn't bothered. PNG support wasn't included in whatever version of osX he has (no I'm not making this up, its a single CPU one of the first G5s out brought in the UK).

      If he comes across a PNG he just moves on without seeing it.

      And no I'm not an anti-apple troll, I'd love a G5 and I'm sure its fairly easy to add PNG support to osX, it just wasn't there by default in this one version.

    9. Re:What format war? by Reteo+Varala · · Score: 1

      Here's a suggestion to change this.

      First, we need a way to make people view web pages in a PNG-compliant browser. Seems to me that the "best viewed at..." lines always seemed to get the public attention toward a specific browser. It worked quite well for IE. People perceived the line as meaning that those web pages used advanced features that only worked in the shiny, new Internet Explorer.

      However, now the tables have actually turned. IE is no longer the shiny and new browser. It's getting dated. It no longer supports the internet standards, and MS certainly has more important concerns right now than adding new features to their web browser. It's an open window for any internet jackal to climb in and tear the place apart.

      How hard would it be to use PNG, and add the "best viewed" line to make the viewers realize there are new web features that Microsoft (their generic name for the IE browser in this context) doesn't support. When they see the art is off-kilter, they can either tolerate it, or get the recommended browser.

      One thing to note is that this will not affect the actual usability of the site. People will still be able to do their shopping, reading or downloading without any issue other than the flawed look to the alpha-transparency graphics. They will see WHY it's best viewed with (insert browser of preference here) and go and get it (especially since it's "free stuff," and when presented as such, it's a major temptation for the customer).

      Finally, don't worry about the 90%. It's shrinking now. All you need to worry about is converting those who you know. It's not difficult; just burn a copy of The OpenCD for each person, and allow them to see how easy these programs really are. If someone asks about popup or spyware problems, simply inform them that it's their browser causing these problems, and point them to (insert browser here).

      *grin* And if their needs revolve around nothing more than internet access and document creation, you are go for recommending Linux! ;)

    10. Re:What format war? by Pionar · · Score: 1

      However, can be handled now with content-negotiation. If your server supports it (Apache does, don't know about IIS), you can just make 2 different versions of the graphic(example.gif and example.png), then in the HTML, just use src="example" and the browser will display which one it wants to.

      In XHTML2, you'll be able to put images in any tag, you could have <p src="image.gif">here is some alternate text</p> and whatever's in the context will be shown if there's a prob with the image.

    11. Re:What format war? by LadyLucky · · Score: 1

      Not to nitpick, but alpha transparency is an optional part of the PNG specification. IE supports all of the required parts.

      --
      dominionrd.blogspot.com - Restaurants on
    12. Re:What format war? by john_smith_45678 · · Score: 1

      And that's just the tip of the iceberg of IE problems...

    13. Re:What format war? by darien · · Score: 1

      Well that's no bloody use, is it? I want to know how many people are using it NOW!

  16. Choosy moms choose GIF! by endeitzslash · · Score: 0, Offtopic

    Only funny if you know how it's pronounced.

    1. Re:Choosy moms choose GIF! by maxchaote · · Score: 0, Offtopic

      Thank you!
      Finally, someone else who knows how it was originally pronounced!

      I shall treasure this link always... looks like I've got some forwardin' to do. <EG>

    2. Re:Choosy moms choose GIF! by dAzED1 · · Score: 1

      like it freaking matters. Obviously, you don't understand how language works. If everyone started pronouncing cat as L-O-P, then guess what - that's how it would be pronounced. The very purpose of language is communication. Communication in the general populous occurs through general concensus of how to pronounce and spell a word, and what that word means. Once I give some inanimate thing a name, its out of my hands.

    3. Re:Choosy moms choose GIF! by narcc · · Score: 0, Offtopic

      Mod parent Flamebait! The last think we need is that stupid "How to pronounce GIF" war to start all over again! And we *just* went through all that when the last Unisys patent expired.

      I say GIF with a G like Gorilla -- others say GIF like the peanut butter. We all know how it was origionally pronounced. If you pronounce GIF like the peanut butter, I think of JIFF not GIF. Other people don't. I pronounce it wrong for clarity. Other people pronounce it properly, for the sake of being proper.

      I don't personally care how you pronounce it. After all, I'm reading this discussion, not hearing it.

    4. Re:Choosy moms choose GIF! by Anonymous Coward · · Score: 0

      I'm going to make a new file format with the extension .JIF. I think I'll pronounce it with a hard "g" sound.

    5. Re:Choosy moms choose GIF! by geekoid · · Score: 1

      What war? he posted a link that says exactly how it is supposed to be said. No real room for discussion.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    6. Re:Choosy moms choose GIF! by Anonymous Coward · · Score: 0

      Apparently YOU don't know that in english there are rules.

      You can't communicate properly if everybody uses a diffent pronociation.

    7. Re:Choosy moms choose GIF! by Venner · · Score: 1

      That only applies if you are a corpus linguist. We grammarians shall yet rule the earth!

      --
      A preposition is a terrible thing to end a sentence with.
    8. Re:Choosy moms choose GIF! by tepples · · Score: 1

      You can't communicate properly if everybody uses a diffent pronociation.

      If a word has a few recognized pronunciations in relatively free variation, such as [gIf] "GIF" (hard) and [dZIf] "GIF" (soft), or [d{ns] "dance" (American) and [dAns] "dance" (British), speakers will tend to settle on one pronunciation and use it throughout a conversation. (Explanation of phonetic symbols)

    9. Re:Choosy moms choose GIF! by narcc · · Score: 1

      I'm going to make a new file format with the extension .JIF

      It already exists.

    10. Re:Choosy moms choose GIF! by dAzED1 · · Score: 1

      the vast majority pronounce it with a hard g. Those that don't, know what is being said when a hard g is used.

    11. Re:Choosy moms choose GIF! by craXORjack · · Score: 1

      What you said is obviously wrong. If language just changes at a moment's notice and at the whim of any village idiot then there would not be such a thing as dictionaries, English classes, or even meaningful verbal communication because it would be so radically different in the next town or from year to year that no one could understand each other.

      Who would claim that there is not a proper way to spell and pronounce words except a egotistical child who thinks he is smarter than his elders? You just need to grow up and admit that you don't know more than your teachers and you deserved that failing grade in Spelling or Grammar or whatever is was that caused you to take up that pretentious attitude of yours.

      For the record: GIF was invented by Compuserve and in the documentation for Compushow they specifically stated that GIF is pronounced jif as in jiffy. It's their format, it's their name; they get to choose. If you insist on pronouncing it as L-O-P then you are mispronouncing it.

      --
      Liberals call everyone Nazis yet they are the closest thing to it.
    12. Re:Choosy moms choose GIF! by Anonymous Coward · · Score: 0
      A preposition is a terrible thing to end a sentence with.

      Agreed. A preposition is a terrible thing with which to end a sentence.

    13. Re:Choosy moms choose GIF! by dAzED1 · · Score: 1
      language evolution is never on a whim. This is something that, over the last couple decades, came to be.

      Read chaucer sometime. Should we still spell things like that? Should we still speak the way they did?

    14. Re:Choosy moms choose GIF! by craXORjack · · Score: 1
      No it isn't. Everyone used to say jiff. But about 15 years ago some person started a campaign to change it to giff. I saw his open letter uploaded on many BBS systems. His argument was the the gee in graphics has a hard gee so gif should too. About 1 in 4 people still say jiff which is the correct way according to the creator.

      Read chaucer sometime.

      As if you've ever read Chaucer. :)

      --
      Liberals call everyone Nazis yet they are the closest thing to it.
    15. Re:Choosy moms choose GIF! by Anonymous Coward · · Score: 0
      About 1 in 4 people still say jiff which is the correct way according to the creator.

      1 in 4 people? All the true techno geeks I know say jiff. The only people I know who use a hard G are wanabees. Of course there are a lot more wanabees these days.

  17. Answer to the inevitable PNG Slashbots by IGnatius+T+Foobar · · Score: 5, Insightful

    The usual crowd of nincompoop Slashbots are going to crow "They should just leave it out! Everyone should use PNG anyway!!"

    Let me answer that in advance by reminding everyone that GIF is a useful format. Everything can read it and display it. It's been around for two decades and is now a completely open and unencumbered standard.

    And let's not forget that when you need to display an image that is non-lossy, and supports transparency, and displays properly in Internet Explorer (shame on you for using Internet Explorer in the first place, but we'll accept that a lot of people still do) ... GIF is still the only available option.

    --
    Tired of FB/Google censorship? Visit UNCENSORED!
    1. Re:Answer to the inevitable PNG Slashbots by Anonymous Coward · · Score: 2, Insightful

      when you need to display an image that is non-lossy, and supports transparency, and displays properly in Internet Explorer

      We'll ignore the fact that GIF is limited to 256 color non-lossyness, but which of those does 8-bit PNG not meet? It's just as non-lossy as GIF, it supports single bit transparency (just like GIF), and it displays properly in IE. Now, IE has trouble with 24bit color PNG with transparency, but that's not something GIF is capable of.

    2. Re:Answer to the inevitable PNG Slashbots by Anonymous Coward · · Score: 0
      "Everything can read it and display it. "

      No, what you mean is that a some of illegally developed software with no respect for intellectual property can process .gif data.

      Since these software packages were using GIF while the patent was still in effect, they can still be sued for damages that happened during that time.

    3. Re:Answer to the inevitable PNG Slashbots by TheRaven64 · · Score: 1

      Umm, no. PNG may not be properly supported in IE (although, I believe it is in the Mac version of IE for some reason), but all of the features of GIF (minus animation) are supported by PNG in IE (i.e. 1-bit transparency).

      --
      I am TheRaven on Soylent News
    4. Re:Answer to the inevitable PNG Slashbots by timeOday · · Score: 1
      The usual crowd of nincompoop Slashbots are going to crow "They should just leave it out! Everyone should use PNG anyway!!"
      It might be more effective to wait until somebody tries to make the point you're arguing against. As things stand you are only arguing with yourself.
    5. Re:Answer to the inevitable PNG Slashbots by stud9920 · · Score: 1

      For me, gif is useless as I can not AA filter an image against the alpha channel which is inexistant in gif.

      In GIF this results in my roundish buttons having edges with a faded version of the color that was selected as transparent. I lose the usefulness of the transparent color, and have to explicitly select it according to the background color.

      In PNG too, but then again the faded shades of the alpha channel are just that, a beautiful alpha gradient, independent of the actual background color.

    6. Re:Answer to the inevitable PNG Slashbots by Anonymous Coward · · Score: 0

      PNG may have a size advantage, but seems to render much slower. If you include transmission and rendering time in the total picture, gif beats png by a large margin. I'll stick with gif!

      Mike Monett

    7. Re:Answer to the inevitable PNG Slashbots by LionMage · · Score: 2, Informative
      PNG may have a size advantage, but seems to render much slower. If you include transmission and rendering time in the total picture, gif beats png by a large margin.

      This is purely subjective, and FUD. On a modern CPU, with a modern graphics card, both GIF and PNG should take the same amount of time to "render." The process of rendering includes taking the data, decompressing it, and writing the pixels to the display device.

      It's quite possible that some web browsers may have a very broken PNG rendering engine, but that's not a fault of the file format. PNG was designed to render progressively as it's downloaded, just like GIF. (I should know, I'm one of the specification co-authors for PNG.) PNG also has a much cooler interlacing scheme than GIF, which has made it a favorite for many set-top box developers (think next generation cable boxes).
    8. Re:Answer to the inevitable PNG Slashbots by john_smith_45678 · · Score: 1

      Should we stick to plain text too for web sites? After all, figuring out which browser supports what HTML is a much bigger pain in the ass.

      Oh yeah, I guess Flash is verboten as well, eh?

  18. Are we sure by millahtime · · Score: 1

    Are we sure M$ doesn't have some patent now that could cause some trouble on this. At their rate of getting patents on technology/already-dev-tech they will have a patent on everything.

    1. Re:Are we sure by Anonymous Coward · · Score: 0

      The one that patents "displaying pretty pictures on a screen" should be overturned real soon before trouble starts.

      Sarcastic, I know.

    2. Re:Are we sure by Xepo · · Score: 1

      Simply having a patent doesn't mean it's valid. The USPTO does a small search for previous art, but it *doesn't* do a search to see if it infringes on other patents. Getting granted a patent isn't giving the permission to use what's described in it, it's getting permission to tell others not to, and possibly have the US government agree with you. Any patent granted can still be shot down by a court. There are a lot of invalid patents currently held, and the major reason why they've not been invalidated officially is because there's not been a lawsuit where they've come under the scope.

      For all intents and purposes, a patent is only useful for threats or for beginning a lawsuit until it's been challenged and upheld in a court. BTW, if the patent is valid, then lots of times the other party will determine that on their own (with their legal team), and settle out of court.

      The patents like this that microsoft holds, like that double-click patent that everyone talks about, will probably never be actually used, unless they *really* *really* need it. Which I'd doubt will happen.

      BTW, IANAL. If I'm misinformed, lemme know.

  19. So what? by Inominate · · Score: 0, Redundant

    The only remaining use of the GIF is for animated images, something GD is bad at producing anyways.

    Then people always like to say stupid shit like "Well IE has bad support for png". While true,it doesn't stop pngs from doing everything a gif does(minus animation). IE may not support the alpha channel correctly, but it still has the full-on transparency of GIF's.

    So who cares? Let gifs fucking die, we don't need them anymore.

  20. Ancient software? by Inominate · · Score: 3, Informative

    Any browser which doesn't support PNG is also not going to deal well with the rest of basicly all websites, or anything else on the modern internet.

    IE displays PNG's properly, with transparency, and it's still non-lossy. IE only doesnt properly support the alpha channel of PNG's.

    1. Re:Ancient software? by Anonymous Coward · · Score: 0

      Was transparency in IE supported since IE 5 or 6?

    2. Re:Ancient software? by Anonymous Coward · · Score: 0

      Netscape 4 only has become totally irrelvant in the last year or so. IIRC, its PNG support was even worse than IE's.

    3. Re:Ancient software? by Inominate · · Score: 1

      5
      It doesn't support the partial transparency of the png alpha channel. But it does do the full-on full-off transparency gifs are capable of.

    4. Re:Ancient software? by Dog+and+Pony · · Score: 1

      IE displays PNG's properly, with transparency, and it's still non-lossy. IE only doesnt properly support the alpha channel of PNG's.

      Ok, so what is all the fuzz about then? You'll have to excuse someone who is not all that good with these graphics terms, but I've for instance made images with completely transparent background, no tones, nothing special, no nothing else in Photoshop and other programs. And it doesn't work in IE (latest). What am I doing wrong? What is the difference, and thus this magic setting I should twiddle?

      From your answer it seems like it is lacking semi-transparency or something, which also would be nice to have, but not as critical as complete transparency.

      However, if this actually works, then most of the world has missed this somehow, and this is your chance to explain it to us. I for one would be extremely thankful - choosing between GIFs or hardcoded image backgrounds is not full freedom. ;-)

    5. Re:Ancient software? by Nurgled · · Score: 1

      PNG supports GIF-like palette transparency, where you nominate a palette index which will allow the background to "show through".

      As you might expect, though, palette transparency only works if you create an indexed (palette-based) PNG images. Most people tend to make 32-bit non-indexed PNG images, which support alpha channel (partial transparency). IE for Windows renders alpha-channel PNG images onto a solid background, thus defeating the object.

      I don't know how you set the palette transparency in Photoshop, but make sure your image is using indexed color first.

  21. Re:Mod Parent -1 GROAN by Anonymous Coward · · Score: 0

    why are you complaining?

    at least I didn't "a href" to any bare geek gif's...

  22. Not in the clear yet... by mixmasterjake · · Score: 0

    Oh, I forgot to tell you guys about my patent for "any process used to display a visual image on a screen in a digital format"

    --
    TODO: come up with a clever sig
  23. PNG on 4.x browsers by tepples · · Score: 1

    Yes. When I first worked on an earlier layout (archived here) of my personal site, some people still had Netscape 4.7 and IE 4.01 browsers, and I made sure the site's indexed PNG images still looked OK. But now that Google Zeitgeist indicates that just about everybody's on 6.x, I frankly don't care about graceful degradation for Netscape 4.x anymore.

  24. Re:for clarity by Lord+Bitman · · Score: 1

    I've never known anyone to not spell it out.. and yet you say "for clarity".. geez, do you really need that extra sixteenth-second it takes to say "G I F" instead of "GIFF"?

    --
    -- 'The' Lord and Master Bitman On High, Master Of All
  25. Yay by Anonymous Coward · · Score: 0

    Soon to return to us, rotating GIFs on _every_ web site! The internet will once again be jumping with life!

  26. What does logic have to do with patents?! by Anonymous Coward · · Score: 0

    Patents = Illogical

  27. Answer to the inevitable Slashtroll by Anonymous Coward · · Score: 0

    Nobody asked about, nor gives a shit about your opinion in the first place.

    Hope that answers your answer.

  28. Digital Cams ? by InodoroPereyra · · Score: 1

    Could anyone on the know tell the rest of us why is it that digital cameras choose JPG as the compressed format instead of PNG ? Looks to me like PNG would typically provide better image resolution for a similar filesize. Maybe I am wrong. And also, is GIF an option now that it is free again ?

    1. Re:Digital Cams ? by raytracer · · Score: 1
      Could anyone on the know tell the rest of us why is it that digital cameras choose JPG as the compressed format instead of PNG ? Looks to me like PNG would typically provide better image resolution for a similar filesize. Maybe I am wrong.

      Yep. You're wrong.

    2. Re:Digital Cams ? by mikera · · Score: 1

      There's probably a commercial reason (companies agreed to support a common standard or something like that?).

      There's also a problem with compression ratios - PNG is lossless so it's improssible to compress beyond a certain point. With JPG you have much more ability to choose a point on the compression/quality tradeoff curve.

    3. Re:Digital Cams ? by maxgraphic · · Score: 1

      Yikes, no.

      JPG uses lossy compression, and for photographic images produces much smaller files than PNG.

      Taking a random digital photo as an example, I get 1.8M as a PNG-24 and 168K as a high-quality JPEG. There's some loss of quality for the JPEG, but typically not enough to care about.

    4. Re:Digital Cams ? by dj51d · · Score: 1

      I'll bite. GIF only supports 256 colors, which makes it useless for digital cameras. The only reason JPG is used as the standard compressed format is file size. No matter how high the quality is set, jpeg is still a lossy format and as such will product smaller files than a lossless format such as PNG.

    5. Re:Digital Cams ? by rusty0101 · · Score: 2, Insightful

      I would suspect that camera developers chose JPG because it was a specification from the Joint Photographers Group (hence it's name). If you are going to sell something to photographers, you want to tie it to a standard that photographers are expected to approve of.

      Note, I am not saying that it was the best standard to choose, simply that it made sense from a camera developer's standpoint.

      I doubt seriously that GIF will be a standard for camra developers to select and store to.

      I susect that for the forseable future, uncompressed images will be saved to TIFFs, and compressed (lossy) will be stored as JPG files. How long this status will stay, I can't predict, neither can I predict what standards will take over.

      -Rusty

      --
      You never know...
    6. Re:Digital Cams ? by maxume · · Score: 3, Informative

      Yep, you are wrong.

      png uses lossless compresion. It basically is a format for zipped bitmaps.(as far as the compression works, it does a whole bunch of other stuff that bitmaps don't.)

      jpeg uses some lossy compression, and then goes ahead ahead and uses lossless on the output of the lossy compression stage. This yields smaller file sizes at a given image resolution(and thus better resolution at similar file size), by sacrificing some amount of quality. The reduction in quality is tunable, and using high quality settings results in images that are fine for most purposes, with the major exception being high quality print.

      gif doesn't support color nearly as well as jpeg or png.

      Basically, jpeg is 'good enough'(for most people, those that it isn't good enough for use stuff like raw formats or tiff+lzw), and already widely supported/in use.

      for more info, check out http://www.photo.net/learn/jpeg/
      it is a decent summary of jpeg and the issues involved with its use.

      --
      Nerd rage is the funniest rage.
    7. Re:Digital Cams ? by jdavidb · · Score: 1

      My understanding is that GIF/PNG are not technologically suited for photographic images. My understanding is that converesion of real-world/photographic images to GIF/PNG can result in some undesirable artifacts even though the compression is lossy. JPG's lossy compression prevents those artifacts and actually smooths out the image. GIF/PNG are said to be better suited for logos and other similar images: things that have relatively large regions of solid colors.

      I am certain that my understanding of the issue is imperfect; I'm sure a subsequent poster will provide corrections.

    8. Re:Digital Cams ? by Anonymous Coward · · Score: 0

      I would suspect that camera developers chose JPG because it was a specification from the Joint Photographers Group (hence it's name).

      I believe that would be the Joint Photographic Experts Group. I'd be wary of an image compression system developed by photographers. ;)

      GIF, incidently, is a particularly bad format for photos and other "realistic" and/or high-color images. For such images you'll usually get a larger file size and a worse-looking image with GIF than with JPEG.

    9. Re:Digital Cams ? by pclminion · · Score: 2, Informative
      Could anyone on the know tell the rest of us why is it that digital cameras choose JPG as the compressed format instead of PNG?

      PNG doesn't handle photographs well. The compression in PNG comes from the zlib compression library. It is based on detecting repetitive patterns. In a photograph there do not tend to be repetetive patterns, because of the nature of the scene being photographed, and because of noise in the camera's light detecting instrument, which tends to break up any patterns.

      PNG has a set of predictive filters which can be applied to an image to attempt to increase the compression effectiveness. However, these are simplistic and are designed to be optimal for non-photographic images.

      Looks to me like PNG would typically provide better image resolution for a similar filesize. Maybe I am wrong.

      Yeah, wrong, but that's okay :-)

      And also, is GIF an option now that it is free again?

      No. GIF is an indexed-mode format, and only supports 8-bit palettes. In other words, a GIF can only have 256 colors. Nobody would ever want to store photographs in such a format.

    10. Re:Digital Cams ? by maxume · · Score: 1

      uhh, no. Png is fine for photos, but will be larger than jpg. gif, as is posted all over this thread, doesn't do color very well(or high color anyway) and is not good for photos. Also, a png will not contain artifacts(it is lossless); but a jpg will(it is lossy).

      --
      Nerd rage is the funniest rage.
    11. Re:Digital Cams ? by ChaosDiscord · · Score: 1
      I would suspect that camera developers chose JPG because it was a specification from the Joint Photographers Group (hence it's name).
      Close. The actual acronym is JPEG, for Joint Photographic Experts Group. The JPEG even has a web page. That JPEG was shortened to JPG has more to do with the "all extensions must be three letters long" mentality of DOS and Windows.
      If you are going to sell something to photographers, you want to tie it to a standard that photographers are expected to approve of.

      Interesting, but I bet most digital photographers don't really know much about the JPEG or why they matter. JPEG was effectively a standard for lossy true-color images long before digital cameras were common. When digital cameras became common, it was only natural to pick the most widely accepted lossy true-color format.

      (For most users, it's not practical to store a lossless image. However, as storage gets cheaper and cheaper, it's becoming more common. However, high end cameras generally have their own custom "raw" format designed to preserve as much data as the camera can generate.)

    12. Re:Digital Cams ? by Anonymous Coward · · Score: 0

      Gif is and is not a lossy format. The compression it's self is lossless in that it always preserves the information exactly as it is. The gif format how ever limited to only 256 colors in indexed color mode. The process of indexing an image is a lossy step. Converting something captured with 24 bit color down to 256 colors most definitely does loose information. Indexing down to 256 colors does make most pictures look really bad. It's great for text, business logos and things like the slashdot graphics how ever which are already naturally limited numbers of colors.

      PNG can either operate in a 256 color indexed mode like gif does in which it operates almost identically to a gif OR it can operate in 24bit color mode. In 24 bit color mode it's going to much bigger files than jpeg files in most situations.

      Gif and png files can be much smaller than jpeg files and look good when you can use 256 colors or less with the indexed colors. For PNG when you go up to 24 bit it's file sizes are much closer to something like a tiff with lzw compression.

      JPEG compression was specifically designed for compressing photographic images. It works much under the same principle of MP3 in that it tries to inteligently discard information that won't be missed. It is an inherently lossy format even at it's highest quality setting. If you took an image and didn't nothing but repeatedly saved it your image quality would slowly degrade but it does produce the best quality image per size of file for photographic images of just about anything out there.

      None of these graphic formats are truely great and powerful formats but the do have thier uses. Jpeg doesn't support layers, transparency, editable text or any other numbers of things. Gif adds limited transparency support but limits things down to 256 colors. PNG can support alpha transparency and 24 bit images but support for any features in png beyond what gif supports is rather weak particularly in IE.

      Graphics formats are really alot more complicated than you would expect them to be especially when it comes to transparency.

    13. Re:Digital Cams ? by Anonymous Coward · · Score: 0

      Not a bad troll.
      One cookie out of five.

    14. Re:Digital Cams ? by Shamashmuddamiq · · Score: 1
      JPEG takes advantage of the limitations of the human eye. For one, it uses a YCbCr/YUV colorspace, in which case (depending on the subsampling used) color information takes only 1/2 or 1/4 as much as it would in an RGB image (luminance information is still sampled at 1x1). Color televisions work this way, too. This is because the human eye doesn't see color resolution as well. Each channel is compressed separately, and it uses discrete cosine transforms to do the compression, which was a really good idea.

      If you were to take a picture and compress it with PNG, and then take a picture and compress it with JPG, you would almost always get a MUCH smaller image with JPG (we're talking orders of magnitude). And, putting them side by side, you wouldn't be able to tell the difference with 99.99% of them. This is why cameras use JPG.

      Just because JPG is lossless doesn't mean it's inferior. Get over it. PNG is good for some stuff, JPG is better for other things. I'm amazed at the number of professional graphics designers that can't grasp this high-school level understanding of compression and color science.

      --
      ...just my 2 gil.
    15. Re:Digital Cams ? by Threni · · Score: 1

      > Just because JPG is lossless doesn't mean it's inferior. Get over it. PNG is
      > good for some stuff, JPG is better for other things.

      JPG is lossy. You knew that though.

      Is PNG slower (generally) than JPG? Filesize is only one consideration for it's use in devices such as digital cameras.

      www.fishkeeping.co.uk

  29. Yes, many of us really did stop using GIFs! by Tumbleweed · · Score: 1

    Well, I wouldn't say the problem is totally user-error. I'd say it's about 2/3 crappy compression implementation in software, and user laziness on trying to get around it. Honestly, most people don't _know_ any better, and why _should_ they, really? If a _program_ like pngout can compress a PNG so much better, there's NO reason that functionality shouldn't be built into every bit of software that creates PNGs. At the very least, let the program call it externally for compressing at the end. The other problem with PNG-creating software is the 8/24-bit palette difference - the software should know to drop the palette down to 8-bit if that's all that's needed. Aren't computers supposed to make things _easier_ with automation? Ugh.

    1. Re:Yes, many of us really did stop using GIFs! by Anonymous Coward · · Score: 1, Insightful

      Good point, but there's only so much the software can do. It would be nice if it at least defaulted to 8-bit if the image had few enough colors. I don't know whether apps typically do this or not. I usually use Paint Shop Pro, which allows you to choose between several output options -- I never use the defaults.

      Software should provide options, but most users will simply accept the defaults, so a format like PNG that has many options creates a bit of a problem. Who do we blame, though? Is it the user for not knowing enough about the format they are using? The software for not being smart enough? The format creators for not making it simpler? Obviously I was blaming the users in the grandparent post, and you are correct to point out that this isn't completely fair.

      For the record, the main problem is people using the wrong type of PNG -- 24 bit when 8 bit is the one that's actually comparable to GIF. It's unlikely that a PNG optimization program will help much in that case (though maybe some of them will change the PNG mode if it can be done losslessly -- but I haven't seen this).

    2. Re:Yes, many of us really did stop using GIFs! by Tumbleweed · · Score: 1

      > Good point, but there's only so much the software can do.

      True, but it seems like too many applications aren't even trying to do the things it should be _easy_ for them TO do, and that's irritating. Especially when such applications go through several generations (hello, Adobe) without any real improvements in such areas.

      > Who do we blame, though? Is it the user for not knowing enough about the
      > format they are using? The software for not being smart enough? The format
      > creators for not making it simpler?

      It's a bit of both user & software, I think. Formats are formats. If the problem is complex, the format will likely need to be somewhat so, as well. It's up to the software to make a simple yet powerful UI, and that's where things break down most often.

  30. My Project Manager's been wanting this for years by GreenHairedDave · · Score: 1, Funny

    He'd walk up and down the aisles of cubes saying "When are we gonna get some G.D. GIF support!?!"

    And now he has his GD GIF support. It's about time.

    --
    The Raging Tech - an IT professional's take on love, life, gaming, tv, movies, technology, entrepreneurial woe, and blog
  31. W3Schools is biased; try Google Zeitgeist by tepples · · Score: 1

    that IE5 and IE6 together account for just over 80% of the market [w3schools.com].

    "The statistics above are extracted from W3Schools' log-files." The fact that 14.0 percent of W3Schools visitors run the Gecko engine doesn't mean that 14.0 percent of W3Schools visitors run the Gecko engine. Most people who visit W3Schools are involved with web development, and I speculate that web developers are more likely to use a web browser other than the one included with the most popular home PC operating system than a member of the general population.

    Google Zeitgeist tells a different story: Based on hits to Google, a much more general interest web site than W3Schools, the lavender line (representing Gecko) is just now getting ready to cross the overlapping orange and blue lines (IE 5.0 and IE 5.5 respectively). Thus, in the general population, one would expect about as many IE 5.0 users and as many IE 5.5 users as Gecko users, that is, twice as many IE 5.x users as Gecko users.

    They're slipping!

    Call me when they have slipped, that is, when IE 6's share has dropped by at least ten percent. Until then, a general interest web site needs to cater at least to the vast majority of installed user agents, which are IE 5.5 and 6 for Windows.

    1. Re:W3Schools is biased; try Google Zeitgeist by kubrick · · Score: 1

      The fact that 14.0 percent of W3Schools visitors run the Gecko engine doesn't mean that 14.0 percent of W3Schools visitors run the Gecko engine.

      Huh? I would have thought that's exactly what it would mean.

      I saw a press article menitioning an overall IE drop from 94.5% to 93.5% in the last 6 weeks or so, due to the security "issues", but I can't remember where it was or where they got their stats from. Might have been at guardian.co.uk .

      --
      deus does not exist but if he does
  32. Au contraire... by Roadkills-R-Us · · Score: 1

    While it's possible you are correct, it seems also at least as feasible that they were making money from licenses. In that case, they'd have ha dto give up the revenues from the final year or two, or face legal action by licensees. Regarless of the merits of such cases, it probably would have cost more to fight the battles than they made from licenses. Since they were off most peoples' radar screens, they simply chose to keep the status quo. After all, it was making money!

    IANAL, NDIPOOTN.

  33. Sonny Bono??? by Roadkills-R-Us · · Score: 1

    IBM has a patent on Sonny Bono?

    Good idea. Maybe that keeps anyone else from making copies.

  34. Or maybe they paid? by billybob · · Score: 1

    Gee, or maybe the big commercial companies actually PAID for a license to use it?

    Use your brain, it's there for a reason :P

    --
    Joseph?
  35. GIF is evil by fiannaFailMan · · Score: 3, Funny
    Gif is only ever used for annoying animated banner ads! It's not capable of doing anything else! Gif is evil! Gif is used by bozos! I hate Gif! Yadda yadda yadda.....

    [There. That should earn me some karma if the recent Flash flame war is anything to go by.]

    --
    Drill baby drill - on Mars
    1. Re:GIF is evil by Anonymous Coward · · Score: 0

      Sorry, but +x funny doesn't earn any karma. Looks like your attempt was futile :)

  36. 9- or 10-bit color in GIF by tepples · · Score: 1

    which of those does 8-bit PNG not meet?

    Animation. IE cannot display 8-bit MNG, and neither can recent Mozilla.

    Now, IE has trouble with 24bit color PNG with transparency, but that's not something GIF is capable of.

    GIF is capable of displaying more than 256 colors through a hack on its animation scheme. Draw the first 256 colors, draw 255 additional colors in each subsequent frame, and put the frames in combine mode. One can get to 9- or 10-bit color rather easily this way.

    1. Re:9- or 10-bit color in GIF by Anonymous Coward · · Score: 0

      He didn't mention animation. The points he brought up were answered. Except for animation, PNG does everything GIF does in IE (and more).

    2. Re:9- or 10-bit color in GIF by Anonymous Coward · · Score: 0

      So, if you want 24bit color lossless images, your options are a hack, which will lead to a large file size, and might be disabled by some (anigifs are disabled here).
      Or PNG.
      Mmmmm

      TWAT

  37. PNG Software support by IntlHarvester · · Score: 1

    All of this talk about IE, Photoshop, and "pngcrush" just shows that PNG is still not living up as totally suitable replacement for GIF.

    PNG seems to be a good example of the second-system effect, where a simple implementation is replaced by "elephantine feature-laden monstrosity", that took a long time to develop, and is difficult to implement correctly. When the largest graphics companies, Adobe & Macromedia, have problems, you have to wonder.

    Not that PNG doesn't have its uses, but if the goal was to create a patent-free replacement, it would have been a lot quicker and easier to come up with a "GIF2" rather than the be-all-end-all replacement. Anyway, it shouldn't come as a shock that people lived with the GIF patent for many years, and that PNG will probably never fully replace GIF. Just something for the "Burn All GIFs" crowd to consider.

    --
    Business. Numbers. Money. People. Computer World.
    1. Re:PNG Software support by Tumbleweed · · Score: 1

      I don't think using Adobe, of all companies, is a good example for your argument. They're not exactly a high-tech bunch. pngcrush has been around for a long time, and yet Adobe still sits on its collective ass about PNG compression in Photoshop. I VERY much doubt this has anything to do with how complex PNG is to implement, and has everything to do with how lazy and/or incompetent Adobe programmers are. IMO, anyway.

      Certainly using _IE_, of all programs, as an example, does NOT help your argument in the least.

    2. Re:PNG Software support by imroy · · Score: 1

      IMNSHO, it just shows that MS and Adobe can't use a simple Open Source reference library. There should be no excuse about it being difficult to implement. It's already implemented! And from reading the simple license, it appears to be BSD-like. So there should be none the worries or problems that commercial outfits seem to have with the GNU GPL. Where's the problem?

      Oh, and if you want to complain about an elephantine feature-laden monstrosity, check out PNG's cousin - MNG

    3. Re:PNG Software support by IntlHarvester · · Score: 1

      Yes, the developers are lazy and should have better support. However, the reality is what it is:

      + It took many years after the GIF Patent was identified to develop and release the PNG standard.
      + It took many years after that until there was even basic software support was in place.
      + For whatever reason, there's not enough customer demand for vendors to fully support PNG.
      + The patent expired, so there's no real objection to using GIF anymore.

      With hindsight, PNG was too much, too late. Which is why "Burn All GIFs" didn't succeed.

      --
      Business. Numbers. Money. People. Computer World.
    4. Re:PNG Software support by Tumbleweed · · Score: 1

      > The patent expired, so there's no real objection to using GIF anymore.

      The patent problems with GIF were far from the only objections to GIF. I'm not returning to GIF now that they're gone - PNG is simply superior in every reasonable way for my needs. I'd just like Adobe & MS to fix their broken software so life is a bit easier. Returning to GIF isn't going to solve any problems for me, or for most people.

    5. Re:PNG Software support by NutscrapeSucks · · Score: 1

      I'm not returning to GIF now that they're gone

      Yes, your perspective is entirely different, you've already eaten the conversion costs. But "most people" never switched to PNG to begin with, and won't until it's easy and it does solve a problem.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    6. Re:PNG Software support by Zareste · · Score: 1

      All of this talk about IE, Photoshop, and "pngcrush" just shows that PNG is still not living up as totally suitable replacement for GIF.

      No, it shows that PNG is an ideal replacement. It's simply a better, smaller, more capable format. Trying to make it bad on account of IE's legendary incompetence and Adobe's out-of-character lack of support is clearly a hopeless effort. Otherwise I could call JPG a lesser format because calculators don't use it.

      --
      I am NOT a number! I am a - oh wait, I'm number 761710. Look! 761710!
    7. Re:PNG Software support by cwilson · · Score: 4, Informative

      (a) It was actually only a couple of months after Unisys announced its patent and its intent to enforce, before the PNG format was finalized. It was really an example of lightning-speed format development. google "png history"

      (b) the worldwide patents on LZW have not yet expired! It's arguable whether the following patent is valid, but IBM was issued a patent on *the same algorithm* covered by the Unisys patent -- and IBM's patent is good for another two years:
      United States Patent No. 4814746 issued in 1989.

    8. Re:PNG Software support by Tumbleweed · · Score: 1

      'Switching' to PNG encompasses two scenarios. One is converting existing GIFs to PNGs. Pretty simple with the right tools. The second is when you create new images, save as PNG. That's WAY simple.

      PNG _does_ solve problems over GIF (better compression, better transparency features for software that correctly supports it, & higher colour depth). PNG has solved those problems for _years_. PNG is not new - far from it. There's NO good reason for this format to not be fully supported by now.

      Granted, many people don't encounter these problems, or don't recognize these symptoms as being caused by their image format of choice.

    9. Re:PNG Software support by pizza_milkshake · · Score: 1
      pngcrush has been around for a long time, and yet Adobe still sits on its collective ass about PNG compression in Photoshop.

      most people that use photoshop that i know haven't even heard of PNG, they all know "JPG for many colors, GIF for few colors" as far as images for the web go. adobe is a commercial software company, they respond to the market, period. if big customers asked for better PNG support, Adobe would provide it. obviously, many people are happy to use GIF because it's familiar, works fine and enjoys broad support.

    10. Re:PNG Software support by Tumbleweed · · Score: 1

      Yep. Pride in one's product is quite dead at Adobe. "If big customers asked for it" is a common excuse MS uses about IE, too. A pox on both their houses.

    11. Re:PNG Software support by IntlHarvester · · Score: 1

      It was actually only a couple of months after Unisys announced its patent and its intent to enforce

      Compuserve was aware of the patent for several years before this, and there was some discussion of simply replacing LZW rather than designing a new image format. (According to second hand BBS posts from ~1991.)

      I hope that someone in the Free Software world is trying to pull some strings with IBM about their patent (which they've never made a dime from, AFAIK). But, unfortunately, now it's tied up with this SCO thing. Maybe Darl will do everyone a favor and get it thrown out.

      --
      Business. Numbers. Money. People. Computer World.
    12. Re:PNG Software support by IntlHarvester · · Score: 1

      I imagine that with IE at least, the issues are more complicated than just adding a library. (Might be MS Office issues etc). Although, I agree they've had many years to work this out.

      Where's the problem?

      Probably lack of customer demand. PNG is sort of like XHTML or Linux-on-the-Desktop -- it matters dearly to 1% of the people, but others are largely ambivalent. Outside of the web, I've generally seen PNG used more in the role of TIFF or PSD, and not GIF. (TIFF being another good example of extremely uneven software support.)

      --
      Business. Numbers. Money. People. Computer World.
    13. Re:PNG Software support by IntlHarvester · · Score: 1

      PNG is to Photoshop as is JPG is to a Calculator?

      Better bone up if you're planning on taking any standardized tests. (Also, "IS TOO!" isn't a very convincing argument.)

      --
      Business. Numbers. Money. People. Computer World.
    14. Re:PNG Software support by JFitzsimmons · · Score: 1
      --
      Beware he who would deny you access to information, for in his heart he dreams himself your master. -Anonymous
    15. Re:PNG Software support by Zareste · · Score: 1

      Well, your standpoint is explained by the fact that you're unable to parse the simplest comparison or read a word of the post. No wonder. I could re-explain it at third-grade level but your reply would be "explain is to standpoint as JPG is to post? Wuh? Huh?" and more delusive statements based on whatever else stoners see when they look at the screen.

      --
      I am NOT a number! I am a - oh wait, I'm number 761710. Look! 761710!
  38. Ho Hum by john_smith_45678 · · Score: 1

    It's nice having choices, but don't think I'll be using GIF. PNG is better and enough browsers support it, basically.

    1. Re:Ho Hum by Ira+Sponsible · · Score: 1

      I STILL can't get any PNG support in lynx.

      What?
      Oh yeah...

      --
      1.Netcraft confirms:In Soviet Russia all your base welcomes a beowolf cluster of CowboyNeal overlords. 2.? 3.Profit!!1!
  39. screw gd, use imlib by xshader · · Score: 2, Informative

    gd is SLOW when rescaling images. out of all the libs i tested, imlib2 was the fastest by far. imlib2 scales all my images on my personal photo album on-the-fly and the processor usage is never an issue.

    1. Re:screw gd, use imlib by boutell · · Score: 1

      Your patches are welcome! There does seem to be some fat worth trimming in gdImageCopyResampled.

      --
      Check out the Apostrophe open-source CMS: http://www.apostrophenow.com/
  40. Of course. Anti-GIF bozos, remove those icons... by Donny+Smith · · Score: 1

    Of course you didn't - most people didn't give a damn except those bozos who decorated their Web sites with those little stupid anti-GIF icons.

    Sure, there are some situations where not using GIFs was/is appropriate or desirable (for example where other formats do a better job), but not using it just because it was patented is silly.

  41. Wrong by adiposity · · Score: 4, Insightful

    Unless you know the business internals and license agreements of those companies, you have no idea whether they respected the patents or not. However, all major graphics program vendors (Adobe, JASC, etc.) have LICENSED the gif compression algorithm, and used it in their programs. Those who paid to use those programs have the right to create gifs.

    These commercial softwares did not disrespect "IP-rights," they meticulously followed the law by doing exactly what's required to use the patented algorithm. They showed respect for the patent by paying to use the algorithm. Free software respected the same rights by not using what they hadn't paid to use (because they either couldn't or weren't willing to).

    -Dan

    1. Re:Wrong by scottj · · Score: 2, Insightful

      EXACTLY! My photoshop-created GIFs were not disrespecting any patents or laws. They were fully and completely licensed. That fact that the license for the GIF code wasn't free didn't make it any less legal. It was merely commercial software.

      But now that it's returning to the public domain finally, I have found that I prefer PNG and its alpha transparency to GIFs. It seems that Unisys' actions provided an incentive to innovate rather than stifling creation.

      --
      .-.--
    2. Re:Wrong by apdt · · Score: 1

      I agree the alpha transparency in png is great... If only it were supported by all the browsers *cough* IE *cough*.

      e.g. this. Check this out in something like moz, and then in IE.

      --
      I lay awake last night wondering where the sun had gone, then it dawned on me.
    3. Re:Wrong by Threni · · Score: 1

      > If only it were supported by all the browsers *cough* IE *cough*.

      Who cares about slight graphical corruption in IE? I know it's the most popular browser and everything, but if all that happens is it doesn't look as good as in a standards compliant browser, then it would appear that it's beneficial to the Open Source movement. IE users will still be able to surf, but if any of them contact the site owner or ask their computer literate friends about it, they can be told that the site only really supports industry standards, not microsoft's personal take on them.

      www.fishkeeping.co.uk

    4. Re:Wrong by apdt · · Score: 1

      While that's nice in theory, it doesn't help you much when your boss comes up to you and asks you why the website doesn't look right. He's not going to be interested in the fact that it looks right in a standards compliant browser, he just wants it to look right for everyone who visits the site.

      Don't get me wrong, I wish it weren't like that, but sadly, that's the way things are.

      Of course for a personal site it's different.

      --
      I lay awake last night wondering where the sun had gone, then it dawned on me.
  42. PNG and non-metric resolution? by Anonymous Coward · · Score: 0

    I know this is off-topic, but why is it that if I save a PNG file with a resolution of something like 300 pixels/inch, and then re-open it, it comes back in as 299.999 dpi?

    If I save it as 100 pixels/cm, it works fine.

    Why is it that other formats can handle both systems, and a relatively new format can't?

    1. Re:PNG and non-metric resolution? by pclminion · · Score: 3, Informative
      I know this is off-topic, but why is it that if I save a PNG file with a resolution of something like 300 pixels/inch, and then re-open it, it comes back in as 299.999 dpi?

      See this portion of the PNG spec. The image resolution is stored in the PNG file as an integer number of pixels per meter.

      There are 39.3700787 inches in a meter. Thus, a 300 pixels-per-inch image is 11811.02361 pixels-per-meter. However, the PNG can only store an integer number of pixels per meter. Thus, 11811.02361 gets rounded to 11811.

      Convert back to inches. What is 11811 / 39.3700787? Why, it's 299.9994 pixels-per-inch!

      That's why 100 pixels per centimeter works perfectly. It's in metric.

      Stop using this silly "inch" things, and your problem will vanish.

    2. Re:PNG and non-metric resolution? by borgdows · · Score: 0

      because the US system is a piece of shit that doesn't deserve to be in a new generation format.

  43. Whoop de doo! by d_jedi · · Score: 1

    I fail to see how this is of any importance.

    --
    I am the maverick of Slashdot
  44. Alternative to jpeg? by bani · · Score: 1

    I'd like to see an alternative to the (increasingly encumbered) jpeg.

    A lossy algorithm for PNG would be perfect. Is there any algorithm which is reasonably good and which isn't patent encumbered into the stratosphere?

    1. Re:Alternative to jpeg? by LionMage · · Score: 1

      PNG was designed to be lossless-only. There is, AFAIK, no effort underway to add lossy compression to the PNG specification. I believe that MNG (the superset of PNG which supports animation) can support JPEG-compressed frames, but since I had no hand in the MNG spec, I don't know this for certain.

      Again, PNG is for lossless, non-animated images.

    2. Re:Alternative to jpeg? by Ed+Avis · · Score: 1

      I did start hacking on something to do lossy PNG compression but didn't finish it. The hard part is integrating the code with libpng so that it lossily compresses the image data but not the headers.

      --
      -- Ed Avis ed@membled.com
    3. Re:Alternative to jpeg? by LionMage · · Score: 1
      Based on what you described, this is the most asinine hack I've ever heard of. The "correct" way to integrate lossy compression into PNG is to add support for it to the specification -- but since the PNG team and the W3C won't go for that, you'd have to fork the spec. And not call the result PNG, of course, because it wouldn't be compliant with the spec.

      Specifically, you'd need to specify a new compression type (there's a field for this in the PNG header chunk), and you would need to figure out how to embed the lossy-compressed data stream into appropriate image data chunks. You would not want to do what you're describing here, which is... well... bordering on the ludicrous.

      After following the link, I have a better idea of what was intended, but I'm perplexed at how you could jack with the zlib implementation to mutilate the lossless compression, then turn around and claim that you'd need to turn the lossy-ness on and off. To quote:
      Then modify libpng to turn on lossiness while writing rows of pixels and turn it off again when writing header type stuff. To do this I need to find out more about the PNG file format.
      Yeah, no kidding. The header chunk isn't compressed with zlib. The only data that is compressed with zlib is the bytestream embedded in the IDAT chunks, and the bytestream embedded in the ZTXT chunks. (I'm going from memory on the name of that last chunk type, but it's the chunk that supports compressed text. For that, you do not want to use a hacked-up version of zlib, obviously, or the text you get back will be gibberish.)

      If it seems that I'm openly hostile to your idea, it's because I am. It's clear to me that the hacks to zlib needed to make this work might not work universally. Wavelet techniques and Fourier-like transforms have been shown to be much more appropriate for lossy compression of photo-realisitc images. (JPEG uses a Discrete Cosine Transform, which is a Fourier-like transform, coupled with Huffman encoding of the DCT coefficients that survive culling. JPEG2000 uses wavelets IIRC.)

      BTW, the results of your "compression" scheme on the color test image given on the site you linked to are atrocious. Even the artifacts from overzealous JPEG compression are more acceptable than the horizontal streaking caused by your tweaking of zlib. No file size savings are worth the type of image degradation that is incurred.
    4. Re:Alternative to jpeg? by Ed+Avis · · Score: 1

      Thanks for the info. I didn't realize that only some of the chunks were zlib-compressed. If the IDAT chunk is just a raw stream of pixels, with no header information at the start of each row or magic bytes giving palette, image size etc., then compressing it lossily will be easy. (Ignoring the problem of ZTXT for now.)

      I agree the image quality is pretty poor... but this was just the simplest possible thing I could hack up to show that the concept could work. Essentially, with the lossy zlib you have a measure of 'badness' of a string match, and for images a string is a list of pixels (or RGB triplets). I took badness as the sum of squared differences between corresponding pixel positions, and then just picked the longest string with badness less than a certain threshold. There is no attempt to do a more sophisticated trade-off of badness against match length, or to do any real image analysis to see if the strings of pixels would look the same to the eye.

      The nice thing about the technique is indeed its sheer bone-headedness. All you need to do is write a C function to take two byte strings of the same length and return a number saying how well they match. The ordinary zlib behaviour would be to return the length of the strings if they match exactly, and zero otherwise. You can write any function doing anything you want and plug it in to see its effect on the image. A sensible way to start might be to do edge detection on the string of pixels ('there is a border at offsets 5, 7 and 15') and check that these points match between the two strings within +-1 pixel. I'm sure you can think of better ideas.

      I don't intend to use PNG to compress photorealistic images but screenshots, line drawings and other things PNG is traditionally good at. I would like to find a way to do good lossy compression on the Dilbert cartoon shown, where the mottled background is tricky to deal with. I could put an ad hoc check in the compressor to see if two strings of pixels both look like 'background' and always treat them as a good match if they are. Who knows, it might even work. The good thing is that you can do whatever bizarre hacks you want in the compression code and the reader of the file doesn't have to know about any of it.

      --
      -- Ed Avis ed@membled.com
    5. Re:Alternative to jpeg? by Ed+Avis · · Score: 1

      FWIW, it looks like Photoshop already supports lossy compression for GIFs and PNGs. I wonder if the Gimp will get it one day.

      --
      -- Ed Avis ed@membled.com
    6. Re:Alternative to jpeg? by Lehk228 · · Score: 1

      how about an image preprocessor which strategically lowers image quality by alktering colors and shapes in order to improve the amount that it could be compressed when made into a PNG.

      --
      Snowden and Manning are heroes.
    7. Re:Alternative to jpeg? by LionMage · · Score: 1
      If the IDAT chunk is just a raw stream of pixels, with no header information at the start of each row or magic bytes giving palette, image size etc., then compressing it lossily will be easy.

      Well, there's a magic byte at the beginning of each row of pixels to specify the filtering strategy employed for that row of pixels. Read the spec.

      I don't intend to use PNG to compress photorealistic images but screenshots, line drawings and other things PNG is traditionally good at.

      Then you're completely off-base in wanting to do lossy compression for these cases. Lossy compression is a liability for things like screenshots and line drawings. Lossy compression doesn't make sense for cases like this, except maybe for some screen shots where you don't care about preserving things like text. Introducing artifacts, which is a byproduct of any kind of lossy compression, is simply unacceptable for the uses that PNG was intended for, especially the examples you give.

      The good thing is that you can do whatever bizarre hacks you want in the compression code and the reader of the file doesn't have to know about any of it.

      And you'd serve to convince people that PNG has "poor quality" compared to other file formats. Average users won't know that you used some kind of borked implementation of PNG to write files that use some kind of brain damaged lossy compression. They'll look at the result and think either that PNG sucks (a very undesirable outcome), or that someone over-processed the image before writing it as a PNG (which is pretty close to the truth).

      Now maybe you'll understand my hostility to your idea.
    8. Re:Alternative to jpeg? by LionMage · · Score: 1

      Been done. Apparently, Photoshop has this "feature" implemented; it's an option in its "Save for Web" dialog. (There's a link in another branch of this discussion thread, but to save you time, you can look at this page for the info.) I guess this is useful for web developers who want to shave a few KB off each image file, but for the kinds of things you'd use GIF or PNG for, I can't imagine that this would be very beneficial.

    9. Re:Alternative to jpeg? by Ed+Avis · · Score: 1
      Lossy compression is a liability for things like screenshots and line drawings.
      This is a matter of opinion and I think there are others besides me who want lossy compression for these images. A lot of screenshots on the web are in JPEG format even though JPEG is not really suited to them (unless they contain a lot of graded colours like some of the more garish desktop environments). At the moment JPEG is the best you have if you want to get the file size down and are prepared to lose pixel-perfect accuracy. A lossy compression for screenshots only has to do better than JPEG, which is hopefully not hard (although I admit I haven't convincingly got there yet). OTOH, perhaps all these JPEG screenshots are just made by people who don't know what they are doing, and that may be true.
      Lossy compression doesn't make sense for cases like this, except maybe for some screen shots where you don't care about preserving things like text.
      Interesting you should mention text. Have a look at the 'Dartmoor' sample images. The text in the bottom right is preserved and doesn't suffer smudging or blurring even at the tight compression settings. This is because of the way the matching works, comparing the sum of squared differences between pixels - text with a reasonably high contrast between foreground and background will get a high badness for any pixel mismatch. The background 'watermark' text is broken up at higher compression levels, because it doesn't have much foreground/background contrast. The Dilbert text at threshold 10000 is speckled a bit but still entirely readable (in Dilbert, everything is high contrast so it's harder to get good compression while preserving text).
      --
      -- Ed Avis ed@membled.com
  45. About time! by Pionar · · Score: 1

    That patent expired what, two years ago?

    1. Re:About time! by Anonymous Coward · · Score: 1, Informative

      Don't be so clueless - there's more to the world than the USA.

      The patent has just expired worldwide (i think the last holdout was Canada). Now the tool can be distributed worldwide without the author being worried about being taken to court or being extorded for license fees.

  46. "submarine" patent? by Thumpnugget · · Score: 1

    The way they sent out nasty letters to people who implemented GIF-producing algorithms, I would say it was more like a "battalion-of-tanks-at-your-front-door" patent.

    --
    Free yourself. Everything else will follow.
    1. Re:"submarine" patent? by elegie · · Score: 1

      There is such a thing as a "submarine" patent. It happens when a party files for a patent on something that does not really exist at the time. The issuing of the patent is delayed (perhaps deliberately by the party obtaining the patent) until someone else produces or implements the covered invention. At that time the patent is finally issued. In the past, the term of a patent started once the patent was issued (not when it was filed) but now the term of a patent is from the filing date. Also, it is said that patent applications have to be published within 18 months of the filing. This makes submarine patents much less common than they once were, but they still likely exist.

  47. This gives me hope... by jeti · · Score: 1

    This raises my hopes that the library will fully support JPEG2000 as soon as 2020.

    1. Re:This gives me hope... by boutell · · Score: 1

      My understanding is that JPEG 2000 is patented, to use a technical term, all the way to hell and back.

      If you can show me that, in fact, I don't have to pay license fees to use it and nobody else does either, I'd be glad to put it in GD. But vigorous arm-waving and "not that I know of" don't count.

      --
      Check out the Apostrophe open-source CMS: http://www.apostrophenow.com/
    2. Re:This gives me hope... by Paul+Rutland · · Score: 1

      Since any JPEG patents will last for at most 20 years and since I guess the JPEG 2000 format was released in the year 2000. It seems likely that in 2020 we can add JPEG 2000 support without worrying about patents. Note: this is the nice thing about patents, they expire within our lifetime.

  48. FreeBSD port had it for a while by mi · · Score: 1
    The FreeBSD port restored the GIF-reading back in August 2001. It was trivial.

    These "legions of geeks and developers" are just whiners -- the source was always there. If you needed it, you could do it -- the whole point of the open source, right?

    --
    In Soviet Washington the swamp drains you.
  49. Urban legend alert! by Anonymous Coward · · Score: 0
    1. Re:Urban legend alert! by eht · · Score: 1

      What part of my post had anything in contradiction to the link in your post?

      I posted real reasons Betamax didn't become popular, not the ones that are traditionally thrown about.

  50. They didn't have to by Wokan · · Score: 2, Informative

    PHP supported the use of older GD libraries on Windows, some of which still have the GIF support in them. All PHP had to do was not remove the capability detection they already had.

  51. Trilon's xv next? by Anonymous Coward · · Score: 0

    gd now, with the expiration of the last Unisys patent on the GIF format, support for GIFs has finally been reinserted in gd. The GIF/PNG/MNG wars may continue, but having more options is good!

    http://www.trilon.com/xv/index.html

    If only we could finally get the next version of John Bradley's late lamented XV now that that patent issue is out of the way.

  52. Obligatory Strong Bad Quote by gregeth · · Score: 1

    "Okay, next on the checklist:
    LOTS of animated GIFS , or "jifs", or however you say it. I heard a couple of nerds arguing about it sometime. But you want as many of those as possible, especially the rotating kind, those are awesome, man. Nobody gets tired of those..."

    "James, the internet is a place where absolutely nothing happens. You need to take advantage of that."

  53. I may owe you an apology... by LionMage · · Score: 4, Informative
    Now if only Adobe could get off their lazy crappy-programmer asses and put proper PNG compression in Photoshop so we wouldn't need programs like pngcrush [and] pngout.

    I used to work for a company named Mastersoft, which was acquired by Frame, the makers of Frame Maker (the now-discontinued DTP app); Frame was subsequently acquired by Adobe.

    While at Mastersoft, I developed an implementation of a PNG reading and writing library for use in various file format conversion products; these reading and writing libraries were also licensed to OEMs for inclusion in other commercial products, so they're in a lot of places. The libraries I wrote used Jean-Loup Gailly's (sp?) zlib (since I didn't want to reinvent the wheel and debug a compression library), but did not rely on the pnglib reference implementation in any way.

    I was very proud of the fact that my libraries were the first commercial implementation of PNG, as far as I can tell. However, due to time constraints and some performance requirements, the compression done by my PNG writer libraries wasn't the best. Specifically, I avoided using any scanline filter type other than Paeth for my PNG writing library; most modern PNG writers will try all 5 filter types on each scanline, and see which compresses the best. My choice had the virtue of saving time in writing a PNG file to disk, but doesn't necessarily produce the smallest PNG files. I also used a relatively small PNG chunk size; since each chunk has some overhead, more chunks means larger PNG files. Lastly, the version of zlib that I used was current as of the drafting of the original PNG specification; subsequent versions of zlib were released which were slightly more efficient, and a few nasty bugs were stomped out.

    I don't know if Adobe is using my PNG writing code in Photoshop, but since Adobe purchased the IP of Mastersoft in the Frame acquisition, it's not inconceivable that they used my code rather than writing their own. If they used my code, then it's quite possible that I'm to blame for Photoshop saving out crappy PNG files that are too big.

    In my defense, though, I should say that many people did manage to compress existing GIF files using my PNG library (which shipped as part of the Mastersoft File Utilities by Adobe, a product that unfortunately didn't last long); one magazine reviewer specifically used this software suite to convert a bunch of GIFs to PNGs, and concluded that in most cases, the PNGs were indeed smaller.

    As soon as you start dealing with non-indexed color images, though, PNG is no better than TIFF. Some folks might incorrectly try to take a 24-bit source image and save as PNG, then take the same source and save as GIF, and will note that the GIF is way smaller -- as it should be, since GIF doesn't support 24 bpp images, whereas PNG does. To save a 24-bit source image as GIF, you have to first reduce the color space and convert to an indexed color image, since that's the only type of image that GIF can store. With PNG, the bit depth of the original is preserved. (And since PNG supports up to 16 bits per channel, and supports up to four channels -- R, G, B, and Alpha -- you can see how a PNG image can get obscenely large. This is where it pays to manage your expectations and understand the features and limitations of the file format.)
    1. Re:I may owe you an apology... by Tumbleweed · · Score: 1

      I don't think you owe anyone much of an apology, even if your code IS still being used, because my real point is that Photoshop has gone through several major revisions since they first started supporting PNG, and even if they started out using your PNG code, they certainly should have had any problems fixed multiple versions ago. Don't sweat it.

    2. Re:I may owe you an apology... by femto · · Score: 3, Insightful
      You have just illustrated a shortcoming of proprietory software. MS (or predecessor) wrote a library, licensed it to Adobe and that is where it stayed.

      *If* MS and Adobe were free software projects, Adobe would have gotten its simplified PNG library and had a product to market just as quickly. Another person could then have come along and at a later date and implemented the remaining filters. In this way Adobe gets a working product quickly, but at a later any missing features get filled in.

      As it is the proprietory model delivered the fast product, but missed out on the 'incremental improvement' stage.

    3. Re:I may owe you an apology... by dave420 · · Score: 1

      The proprietary model also included a "fat profit" stage, not found in the open source model :)

    4. Re:I may owe you an apology... by Anonymous Coward · · Score: 0


      Or if the libPNG were of an Open source license that allowed static linking of non-GPL commercial programs, Adobe might have kept updating it.

      So who's to blame?

  54. Mac IE has full PNG support by LionMage · · Score: 1
    Not complete lack of support, but IE's PNG support is partly broken. Mostly in that it doesn't support alpha transparency, though all other major browsers do.

    Just to clarify, the Mac version of IE has much better PNG support than the Windows version of IE. In fact, Mac IE supports alpha transparency in PNG perfectly. (Even to the point of blending a foreground PNG with alpha transparency with a background graphic!) Too bad Microsoft abandoned IE on the Mac, and even sadder still that the programmers who worked on Mac IE didn't teach a thing or two to their Windows IE counterparts.
  55. Minor correction by LionMage · · Score: 1
    IE displays PNG's properly, with transparency, and it's still non-lossy. IE only doesnt properly support the alpha channel of PNG's.

    Just to clarify... Mac IE displays all PNGs properly, even with alpha channel. Windows IE displays PNGs with indexed transparency properly, but not PNGs with alpha channel transparency.

    And yes, I know that Mac IE is discontinued, but it's still a useful browser to test with. It still has many features that its Windows counterpart lacks (such as better PNG support).
    1. Re:Minor correction by scottj · · Score: 1
      --
      .-.--
    2. Re:Minor correction by Bert64 · · Score: 1

      But web developers shouldn't have to waste time applying ugly kludges to their sites to make them render in broken browsers, they should be able to make a standard page, following defined specifications, that displays properly in all browsers...
      Broken browsers should be fixed or dumped, they just hold everyone else back and cause endless hassle for developers...
      Aside from this, using a nonstandard ie-compatible method may not render properly in standards-compliant browsers anyway.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  56. Funny how much this argument's used... by Anonymous Coward · · Score: 0

    And how overall useless it ends up being...

    "The patent problems with MP3/AAC were far from the only objections to MP3/AAC. I'm not returning to MP3/AAC now that they're gone - Ogg is simply superior in every reasonable way for my needs. I'd just like Apple & Dell to fix their broken hardware so life is a bit easier. Returning to MP3/AAC isn't going to solve any problems for me, or for most people. "

    1. Re:Funny how much this argument's used... by Tumbleweed · · Score: 1

      Funny how little that has to do with what I was saying. The advantages of Ogg over mp3 and AAC are fairly miniscule from a feature standpoint, and are almost entirely over patent issues. The same isn't even remotely true about the GIF vs PNG debate.

      Nice try, though; you'd make a good politician. :)

  57. I only just got rid of them! by xixax · · Score: 1

    We were using the old version of GD that did GIFs, but had to re-write some stuff when they dropped it. I'm not going to bother bringing GIF support back since PNG does everything GIF that does.

    Xix.

    --
    "Everything is adjustable, provided you have the right tools"
  58. *bzzzt* WRONG! by Jeedo · · Score: 2, Informative

    It's the Joint Photographic Experts Group. There is a fairly large difference between a photographer and a photograph(ic).

  59. oops by tepples · · Score: 1

    Huh? I would have thought that's exactly what it would mean.

    It appeared a typo slipped past even the Preview Button. If one replaces the second "W3Schools visitors" with "any other site's visitors", does my point hold?

    I saw a press article menitioning an overall IE drop from 94.5% to 93.5% in the last 6 weeks or so

    But does the curve look like Internet Explorer is headed toward sub-80 percent share among the general WWW user population?

    1. Re:oops by kubrick · · Score: 1

      But does the curve look like Internet Explorer is headed toward sub-80 percent share among the general WWW user population?

      It's a pretty sudden drop, but I doubt that it will keep up unless Microsoft are completely asleep at the wheel.

      Newspaper articles that tell you to stop using IE or "hackers will steal the money from your bank account" do tend to scare people, though, and if there's much more of that sort of press (and alternative browsers don't have similar problems) then who knows?

      --
      deus does not exist but if he does
  60. a pity by bani · · Score: 1

    is there any specific reason why png couldnt be extended to lossy images, or is this purely a dogmatic issue?

  61. PHP 5.0.1 will have gif write support again by aint · · Score: 1

    Just a FYI, barring any setbacks the PHP 5.0.1 image extension will again have GIF write support and it's always had GIF read support. Also, keep in mind that PHP bundles its own modified version of the GD library (from boutell), it's even recommended/preferred. Minor versions of PHP don't add new features but this is seen as a worthy exception.

    As for the code submitted in this thread, just use function_exists() on a GD2 specific function, such as imagecreatetruecolor(), much more efficient ;)

  62. Moz and Flash by 0x0d0a · · Score: 1

    So, aside from the possible fact that Macromedia has pull, why does Firefox ship without any Flash-blocking features, but with Flash included? It includes image display features, but has animated-GIF-blocking features, and if anything, animated Flash is more annoying than animated GIFs.

  63. Great news for imode developers by Merlin2600 · · Score: 1

    I am developing some PHP websites for imode phones. The problem so far was that pictures _have_ to be in GIF format (and under 10k). And as PHP is using GD to generate its pictures, I was screwed. Now, getting my hosting provider to upgrade is another problem. :(

  64. Re:My Project Manager's been wanting this for year by VGPowerlord · · Score: 1
    > He'd walk up and down the aisles of cubes saying "When are we gonna get some G.D. GIF support!?!"

    > And now he has his GD GIF support. It's about time.

    Err... you were aware that GD has had GIF support in the past, right?

    --
    GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  65. Not only that... by WWWWolf · · Score: 1

    Not only gd has got GIFs...

    $ apt-cache show gimp | grep Provides
    Provides: gimp2.0, gimp-nonfree
    $ dpkg -L gimp | grep gif
    /usr/lib/gimp/2.0/plug-ins/gif
    /usr/lib/gimp/2.0/plug-ins/gifload

    ...Debian's GIMP has them too again. In main distribution. Let no one say Debian's GIMP lacks GIFs again =)

  66. The difference between transmitting by warrax_666 · · Score: 1

    50 bytes and 100 bytes is utterly irrelevant; 99% of the wait the user experiences is caused by network latency (which remains the same). Still, since the patent expired there probably aren't any good reasons not to use GIF for this -- except maybe the Feel-good Factor(TM).

    --
    HAND.
  67. Unfair by warrax_666 · · Score: 1

    I'm referring to that last bit about increasing indents. The transparent-GIF-using webmaster could just as easily have a 20x1 transparent GIF called "indent.gif" used only for indentation. Then they could change indentation just as easily as you could. So there. :)

    Just to be clear: I'm not arguing that using transparent GIFs is better than CSS, I'm just saying your last argument is based on the unfair assumption that the GIF-user couldn't use a similar trick to class="indent".

    --
    HAND.
    1. Re:Unfair by Trejkaz · · Score: 1

      Hey, the CSS user could use a trick where class="indent" isn't even required. :-)

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    2. Re:Unfair by warrax_666 · · Score: 1

      Umm... that's why the example was unfair.

      Whether it's a trick or not is irrelevant. A GIF user could employ a trick to achieve the same goal (ease of global modification) with ease, so touting easy updates as an advantage is not "fair" when comparing the transparent pixel approach with the class="indent" approach. That was my point.

      --
      HAND.
    3. Re:Unfair by Trejkaz · · Score: 1

      I didn't say that being a trick made it somehow invalid. Hell, I didn't even say it was a trick. I just said that the CSS user wouldn't even have to modify the HTML at all in most cases.

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
  68. Uruguay Round Agreements Act (Offtopic) by elegie · · Score: 1

    The Uruguay Round Agreements Act (URAA) did indeed restore US copyrights to a number of foreign works that had become public domain in the USA. Copyright owners who were planning to enforce a restored copyright were supposed to notify any reliance parties. A "reliance party" was a party who had assumed that a URAA-covered work was public domain and who had begun making use of the work prior to the URAA enactment. A copyright holder could tell the Copyright Office that they planned to enforce the copyright. The Office published lists of URAA-covered works with enforced copyrights. When a reliance party found out about a work's URAA copyright enforcement, they had a 12-month period to prepare and to cease making copies of the work, etc. After the 12-month period, the reliance party was required to honor the restored copyright. If a reliance party had produced a derivative work of a URAA-covered work prior to the URAA enactment, they could keep using the derivative work in exchange for paying compensation to the copyright owner. More information on the URAA can be found here (PDF format file.)

    The URAA did try to take into account that parties might have started exploiting URAA-covered works prior to the URAA enactment. However, it was still probably a lousy experience if a party was planning to exploit a URAA-covered work on an extended basis or was not counting on paying anything for a derivative work. Hopefully there were no young individuals or hobbyists who were hit by the URAA.

    In this case, it appears that it is indeed possible to restore copyright (and possibly patent) protection to a public-domain work. However, exploitation of the work prior to the enactment of the restored protection would not be punishable.

  69. Not a pity by LionMage · · Score: 1

    Because it was meant to be lossless-only. To alter this is to fundamentally alter what PNG is meant to do. The spec writers all agreed, that PNG shouldn't be another TIFF. If you want to see what will happen to PNG if you start adding in every compression scheme and ever possible color space (e.g., CMYK, RGB, YCbCr), just take a look at TIFF. TIFF supports both lossy and lossless compression, every conceivable interlacing scheme known to man, and every color space you can think of -- and most TIFF readers only handle a subset of TIFF images because the spec encompasses so much!

    The issue isn't precisely one of dogma, it's one of design by intent. The intent was to create a better lossless image format that would replace GIF, and something that did not have the complexities associated with TIFF. The mailing list discussions among the PNG spec developers were very animated, sometimes bordering on flamage, and a few folks suggested things along the lines of what you're suggesting -- and were shot down. If you want to deal with bilevel images specifically, use JBIG. If you want to deal with lossy image compression, you have JPEG and JPEG2000. PNG doesn't need to try and do what those other file formats already do, and better. (Yes, you can store bilevel images in PNG, but specialized bilevel encoding schemes such as Group III/IV Fax and JBIG do a better job in many cases.)

  70. The GIF format may be encumbered still by elegie · · Score: 1

    As of June 21, 2004 (when the page was updated) the Free Software Foundation seems to consider the GIF format to be patent-encumbered. They say that the IBM patent would be an issue even if the Unisys patent was not an issue. Also, it is said that the IBM patent in the USA will expire on August 11, 2006. The FSF has said that they have not been able to search every patent database for every country (they have searched in the USA, Japan, Canada, and the European Union so far.) It is possible that there are additional patents that have not been found yet.

    Interestingly, the FSF says that the patents for Unisys and IBM only covered LZW compression and not LZW decompression.

  71. It's not exactly lossy compression by LionMage · · Score: 1

    FWIW, if you actually read the article that you linked to, it's pretty clear that Photoshop is simply pre-filtering the image before writing it out as a GIF or PNG. The goal is to pre-filter/pre-process the image so that the lossless compression in GIF or PNG can more efficiently do its job.

    This isn't a hack to GIF or PNG; rather, this is a pre-processing step to reduce the amount of actual information in the image, thereby making it more compressible. You could do something similar by JPEG-compressing an image at a lower quality setting, then re-loading it and saving the resulting bitmap as a GIF or PNG.

    1. Re:It's not exactly lossy compression by Ed+Avis · · Score: 1

      Indeed the lossy-zlib code with a user-specified matching function is a kind of pre-filtering before doing the zlib compression. The only twist is that there is feedback from zlib to the application about what it's trying to do, so that the app need not lose detail in places where that wouldn't get a smaller output file.

      Trying to produce a smaller PNG by first saving as low-quality JPEG and then making a PNG from that does not work, at least not for the kind of images you'd typically use PNG for. For example a screenshot took 198kbyte as a PNG; I saved it as a JPEG at 50% quality (which took 141kbyte) and then remade that into a PNG. The final PNG took 712kbyte. The lossiness used by JPEG works well for images (esp. photographs) saved as JPEG but it isn't the kind of lossiness that will improve Lempel-Ziv string matching.

      --
      -- Ed Avis ed@membled.com