Recently I've wondered about support for GIF in GD now that the Unisys patent has expired. When a friend asked the same question and I didn't have an answer, it was time for some digging. A minute with Google yielded this statement from GD's author:

"Yes, Unisys still holds a patent on the LZW compression algorithm in some countries. The best solution is to move to legally unencumbered, well-compressed, modern image formats such as PNG and JPEG as soon as possible." (source)

So, for the time being, GIF is still evil.

Updated to add that European patents expire at 20 years, while U.S. patents expire at 17. Blah.

Replies are listed 'Best First'.
•Re: FYI: GIF (non) support in GD
by merlyn (Sage) on Feb 27, 2004 at 01:33 UTC
    Yes, as I say in WT column 47:
    I don't know whether to be more mad at Unisys (who are enforcing the patent that makes GIFs a licensed commodity), Compuserve (who created a popular file format that used patented processes), the US Patent Office (who permit software patents), or the big browser makers (for not having good PNG support in existing browsers).

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Re: FYI: GIF (non) support in GD
by hardburn (Abbot) on Feb 27, 2004 at 02:20 UTC

    Yup. The GIF LZW patent expires in all countries in June/July (depending on the country). The Unisys LZW Patent Page has the exact dates. Last ones to go are the European countries on July 7.

    ----
    : () { :|:& };:

    Note: All code is untested, unless otherwise stated

Re: FYI: GIF (non) support in GD
by theorbtwo (Prior) on Feb 27, 2004 at 16:39 UTC

    The question in my mind, is "is it worth it to put GIF support back into things"? PNG is a better format all around -- not surprising, considering the GIF format is from 1987 (with revisions in 1989), and untouched since then. 'Old' ne 'bad', I know, but GIF is an old format, with tradeoffs that no longer make sense.

    PNG gives better compression, better metadata, and better color depth. Even without the difference in patent-encumberation being an issue, PNG is still clearly better then GIF.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      PNG is superior in every way, except one, which might be the most important in practice: vendor support. IE doesn't support it's transparency correctly, and Photoshop has a piss-poor PNG compressor (last I checked, you're actually better off not compressing PNGs at all in Photoshop). Those two products make up the most common way of viewing and creating images, respectively.

      Further, since Microsoft says there aren't going to be any more updates to IE until Longhorn comes out, and it'll take at least 1-2 years before a significant fraction of MS users are on the new OS, we're going to see at least three more years of IE non-functionality of PNG support (unless the recently announced "XP Reloaded" changes the IE release, too).

      ----
      : () { :|:& };:

      Note: All code is untested, unless otherwise stated

        I strongly suspect that XP Reloaded will come with IE Reloaded, and be the only way to get some of it's funky new features.

        I doubt it will improve anything that users are not crying for, and that doesn't yeild itself to a bit in a magizine article showing what cool new features it has.

        The idea of Reloaded seems to be to get a new box on shelves and people buying it like a new product when it's really not, with as little development time as possible, because every day somebody works on this is a day they aren't working on Loghorn.


        Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

        Very true about transparency.

        I'd just add that png does not support animated images.