Home >> Computers >> Data Formats >> Graphics >> 2D >> GIF


  News and Media
       


GIF (Graphics Interchange Format) occurs as bitmap image format for even pictures that use 256 (or fewer) distinct colors (though there is a workaround for this limitation) and animations that use 256 (or even fewer) distinct colors by the frame. GIFs come compressed files, and come listed specifically to reduce the total of period it requires to transport images across a network connection. A format was introduced by CompuServe in 1987 and has since come into far flung usage on the World Wide Web.

The GIF file employs lossless data compression so that a file size of an image can be reduced while forgoing degrading a ocular quality (provided the image fits into 256 colors). A GIF format's 256-color limitation makes it unsuitable for exposure, though losslessly compressed pic tend to exist as intolerably big for the web anyway. But then a lossy JPEG format does badly on sharp transitions rather victims within diagrams, producing extremely seeable artefact & little file-size reduction. So GIF is unremarkably utilized for diagrams, buttons, etc., that have a little total of colors, when a JPEG format is utilized for exposure.

Numbers of software package developers were caught by surprise whenever it was revealed that a GIF format experienced been patented by Unisys, and that it would use at times to pay royalties for even writing software that generated (or displayed) GIF files. a want for a like format by using fewer legal restrictions (besides when fewer technical indicator restrictions like the total of colours) led to the development of the PNG (Portable Network Graphics) standard. Although a Unisys patent has since expired, PNG is however touted as a technically superior choice, & has be a third usual image format in the internet. History
A GIF format was introduced within 1987 by CompuServe in order to provide a colour image format for their file downloading areas, replacing their earliest RLE format which was black & white exclusively. GIF became popular because it used LZW data compression, which was more effective than a run-length encoding that formats such as PCX and MacPaint used, and fairly big images can so become downloaded inside the sensible total of instance, potentially by having super slow modems.

A original version of GIF was known as 87a. Around 1989, CompuServe devised an enhanced version, called 89a [http://www.w3.org/Graphics/GIF/spec-gif89a.txt], that added trend lines for multiple images within water, interlinking & storage of application-specific metadata. Them versions may be distinguished by shopping at a number one six bytes of the file, which, when interpreted when ASCII, read "GIF87a" & "GIF89a", severally.

After a World Wide Web gained popularity, GIF became one of them image formats ordinarily utilized in Website, a more existence the black & white XBM. JPEG came later by owning a tessellated web browser & truecolor displays.

A GIF89a feature of storing multiple images inside of these file, accompanied by control information, is utilized extensively in the internet to make elementary animations. the optional interwoven feature, which stored image scanlines away from choose inside such the fashion that potentially a partly downloaded image was somewhat recognizable, too helped GIF's popularity, as a user may abort a download whenever it was non what was mandatory.

GIF images come limited to 256 colours, though these are imaginable to hack around this limitation, under certain circumstances, using the animation feature (see colour).

Pronunciation
English speakers typically pronounce "GIF" by using either an affricate consonant when inside "giraffe" /dʒɪf/ or even the stop consonant when around "gift" /gɪf/. A format's creators come quoted when utilizing an affricative to pronounce a acronym. There exists plenty of grounds to believe to indicate this, lot of which may be witnessed [http://www.olsenhome.com/gif/ here]. Nevertheless, numbers of population utilize a plosive pronunciation around every day conversation. the affricative wwhen utilized as a developers experienced a sense of humor "Choosy Developers Choose GIF", making the play in the then-famous commercial for peanut butter. Outside of the English language there are the total of farther variants.

Unisys and LZW patent enforcement
A LZW compressiin algorithmic rule on which GIF is depending, was covered by owned by Unisys. Whilst Compuserve number one developed the GIF it did non understand that LZW was covered by a patent. Around December 1994, after Unisys found that GIF utilized the LZW, it announced that it would become looking royalties thereon patent; wholly commercial software online capable of producing GIF files would become involved to pay a license tax to Unisys.

By this period, GIF was within such far flung have that virtually all corporations producing these computer software experienced little selection however to pay. Within late August 1999, Unisys terminated its royalty-free LZW technology licenses gratis software package program & non-commercial proprietary software & potentially for single users of unlicenced computer program, prompting a League for Programming Freedom to launch a Burn Tons GIFs campaign to inform the public of the choice.

In June 20, 2003, the United States patent on the LZW algorithmic program expired [http://www.unisys.com/about__unisys/lzw], which means that Unisys & Compuserve potty there is no protracted collect royalties for have of the GIF format therein united states. Victims bothered by owning a patent enforcement dubbed this day GIF Liberation Day. A tantamount patents around Europe & Japan expired in June 18 and June 20 2004 respectively, with a Canada patent resulting in July 7.

IBM has likewise patented a LZW algorithmic rule, however has never enforced this patent. Based on data from a Free Software Foundation that patent will expire in August 11 2006 in the United States.

Usage
Possibly by having a general adoption of broadband, the size of downloads continues to exist as the critical issue on the world wide web. Big webpage have a blackball consequence in user own household budget by existence slow to render. Big webpage come likewise further expensive for their owners world health organization pay per megabyte once traffic has passed a certain level. So GIF's compressiin makes it worthy as an image format for utilize on webpages.

GIF is the single widely utilized image format to support animation. These are often wont to produce little animations & short, sale-guide films for webpage.

Virtually all webpage logotype & project element images come GIF or even even PNG because victims come designed to with success compress images that contain big stops of the equivalent colour or of repeating system; JPEG cannot compress areas of flat, clean colour using sharply transitions swell.

JPEG is favorite for digital photographs because it allows images to contain more than 16 million different colours (GIF gives the selection of sole 256 of people colours by the image) & it compresses pic better. Uncompressed electronic image formats prefer Windows bitmap are sometimes favorite for images within computer software when speed is additional significant than decreased file size, because uncompressed bitmaps may be displayed more quickly.

Colour
GIF is palette depending: although any colour can be one of millions of shades, the maximal total of colours available for both frame is 256, which are then stored around a "palette", the table which associates every colour blunt sustaining an actual colour value. A limitation to 256 colours seemed sensible at a period of GIF's creation because couple population got a devices to display further. Elementary graphics, delineation, cartoons, & grayscale photographs usually want fewer than 256 colours. Optionally, one of a color the palette may be placed when transparent, hence achieving elementary binary transparency.

There survive ways to dither colour photographs by alternating pixels of Deuce or even supplementary different colours to approximate an within-mediate colour, however this transformation inevitably loses a bit of detail, & a algorithms to select colours & to perform the dithering change widely within output quality, returning dithering a even unwarranted bad reputation. In addition, dithering significantly reduces a image's sponginess & so works contrary to GIF's independent purpose.

In the early times of in writing web browsers 256 colour screens were park & it was fairly commons to produce GIF images using the websafe palette which was based on a most common area of the standard Windows & Macintosh palettes. This ensured predictable display in 256 colour screens however severely limited a selection of colors. Currently that truecolour screens come a norm, optimised palettes produce supplementary feel while creating 256 colour images, though their come however several web sites in web project that counsel apply of the websafe palette.

GIF89the was designed according to a principle of giving images (called frames while utilized for animation) to a logical screen. For each one image may optionally keep close at h& its have palette, & a format will bring flags to specify delay and wait for user input (non widely supported by viewers) between the children. This is the feature that is utilized to produce alive GIFs, however it can too become utilized to losslessly store the Twenty-four-bit RGB (truecolour) image by splitting it higher into pieces microscopic plenty to become encoded into a 256 colour palette & setting up the gif to render these sustaining there are no delay on the logical screen ([http://phil.ipal.org/tc.html demo]). Unluckily, virtually all web browsers seem to consider that this multi-image feature might lone become utilized for animation & insert the minimal delay between images. There is a few filesize bloat from either doing this, especially whenever a encoder doesn't trend lines LZW for patent reasons. There are super couple tool that might easy make truecolor GIFs, & these are seldom an appropriate format unless there exists absolutely there are no more stock.

Alternatives
A PNG format was specifically designed to replace GIF for utilize as a lone-image web format. PNG offers better compression & supplementary features than GIF. A format is quickly replacing GIF for however images, mostly in site of computer enthusiasts protestant Unisys's license policies & in a bit of cartoon sites that take benefit of PNG's tighter compressiin to save on net bandwidth charges.

All the features of GIF except animation come supported by PNG. When fresh web browsers support PNG, most GIF images can be replaced by PNG images. Regrettably numbers of population come under a misconception that Internet Explorer does not trend lines transparent pngs. This final result from either confusion of alpha channel transparency (which GIF does not offer) by having binary transparency (which Internet explorer supports for both GIF & PNG images).

A mistaken belief that PNG files come big than GIF for the equivalent images might usually become traced back to one of 2 items: Population making a unfair comparison of the file size of Eight bit GIF by owning Xxiv bit PNG. A unfortunate PNG trend lines inside older versions of Adobe Photoshop.

MNG, the animation-supporting relative of PNG, reached version Unity.Zero around 2001, but pack applications trend lines it. It has so experienced little impact on the utilise of GIFs for animation. In todays world animations can be a lone field in which GIF is required, because of the want of browser trend lines for MNG.

Around 2004, a projected extension to the PNG format, known as APNG was suggested. It would add a ability to animate PNG files, when retaining backwards compatibility around decoders which just can not read a animation chunk. Such decoders would only display it when though it were one image PNG file.

Miscellaneous
A MIME media type for GIF is image/gif (defined inside RFC 1341).

Burn All GIFs
Information on upgrading a web site from the patent-encumbered GIF format to freely available graphics.

US4558302 Patent
The US patent covering the LZW compression algorithm used in GIF images.

Unisys/CompuServe GIF Controversy
League for Programming Freedom (LPF) page on the Unisys patent controversy.

GIF Economy: A Cautionary Tale
Article on the GIF controversy seen from a software developer's perspective. Includes original interviews, a historical perspective, up-to-date information and a detailed bibliography.

The gif2png Home Page
The program converts files from the Graphic Interchange Format to Portable Network Graphics. The conversion preserves all graphic information, including transparency. The program can recover data from corrupted GIFs.

Graphics Interchange Format
Original specification describing the file layout as originated by CompuServe. Also known as Gif87a.

Graphics Interchange Format
Provides detailed specification of file layout, encoding and decoding algorithm, and color space model for gif89a.


Computers: Algorithms: Compression
Computers: Data Formats: Graphics: 2D: JPEG
Computers: Data Formats: Graphics: 2D: PNG
Computers: Graphics: Web
Computers: Software: Graphics
Society: Issues: Intellectual Property: Patents




© 2005 GeneralAnswers.org