You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Raster · Image & imagery

GIF — Graphics Interchange Format

Palette-based raster image format with lossless LZW compression, limited to 256 colours per image.

Type
Raster · Image & imagery
Extension
.gif
Converter
Read & write
Coordinate system
Any (georeferenced)
Bands
Indexed color (palette) with optional single transparent index.

What is a GIF file?

The Graphics Interchange Format (GIF) was introduced by CompuServe in 1987, and its widely used GIF89a revision followed in 1989. In geospatial work it is mainly used for simple cartographic outputs, thematic maps and web graphics. It is not suitable for analytical imagery because of its limited colour depth.

Images are stored with a colour table of up to 256 entries, and pixel indices are compressed losslessly with LZW. One palette index can be marked as transparent, and multiple frames can be combined into an animation, although animation has no meaning for GIS rasters. Image width and height are limited to 65,535 pixels. GIF supports neither multiband nor high-bit-depth data, so continuous data such as elevation or photographs lose information when converted to it. The format has no internal georeferencing. Location and coordinate reference system are supplied by a world file (.gfw or .wld) together with a .prj or .aux.xml sidecar.

GIF files in GIS workflows usually come from web mapping exports, report figures or legacy cartographic archives. The image itself carries no location, so it is only usable as a map layer when a world file and a projection sidecar travel with it. Keep these files together, and check the palette and transparent index, because converting continuous data to 256 colors discards values.

Typical uses

  • Publishing simple thematic maps and legends on web pages.
  • Embedding small map graphics in reports and documents.
  • Archiving legacy scanned or rendered maps with a world file.
  • Sharing low-color overlays that need a single transparent color.
Files: Palette-based; single transparency index; animated GIF not meaningful for GIS rasters.

Sample GIF files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena land-cover raster st-helena-landcover-gif.zip

Land cover (8-bit palette)

Land-cover classes of Saint Helena rasterised from OpenStreetMap at 20 m (13 classes incl. sea, buildings and airport), Byte with a colour palette. Georeferenced by a world file and .aux.xml (CRS).

  • 1 band · Byte
  • 906 × 762 px
  • 20 m
  • EPSG:32730
  • 19.3 kB

Inside: README.txt, st-helena-landcover.gif, st-helena-landcover.gif.aux.xml, st-helena-landcover.wld

© OpenStreetMap contributors, ODbL 1.0

Frequently asked questions

GIF has no internal georeferencing. Software needs a world file (.gfw or .wld) with the same base name, plus a .prj or .aux.xml sidecar for the coordinate reference system. If these files are missing or renamed, the image is shown in pixel coordinates.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.