jfor.org

Image

What is a .cgm file?

A .cgm file is a Computer Graphics Metafile ASCII (version 1). This is an image format — a picture, drawing or graphic. Confusingly, this extension has been used by 7 different formats over the years — they're all listed below.

This extension has been used by more than one format

7 different formats have claimed .cgm over the years, so two files with the same extension aren't necessarily the same kind of thing.

How to open a .cgm file

  • GIMP (free) and IrfanView open a very wide range of image formats, including obsolete ones.
  • XnView MP is the best bet for unusual or legacy image types.
  • Your operating system's built-in viewer may work for mainstream formats.

The registry records this extension against Computer Graphics Metafile ASCII, Computer Graphics Metafile ASCII, Computer Graphics Metafile ASCII and others, so software from that family is the most likely match.

How to convert a .cgm file

  • Open it in GIMP or XnView and export as .png (lossless) or .jpg (smaller).

MIME type

When a .cgm file travels over the web, servers label it with one of these MIME types:

image/cgmimage/cgm; version=1image/cgm; version=2image/cgm; version=3image/cgm; version=4

What's a MIME type?

The technical record

For archivists, developers and the merely curious: these are the PRONOM registry entries for .cgm.

Format nameVersionMIME typePUID
Computer Graphics Metafile ASCII1image/cgmx-fmt/142
Computer Graphics Metafile ASCII3image/cgmfmt/301
Computer Graphics Metafile ASCII4image/cgmfmt/302
Computer Graphics Metafile (Binary)1image/cgm; version=1fmt/303
Computer Graphics Metafile (Binary)2image/cgm; version=2fmt/304
Computer Graphics Metafile (Binary)3image/cgm; version=3fmt/305
Computer Graphics Metafile (Binary)4image/cgm; version=4fmt/306

Got another one?