What Is .cgm
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 10, 2026
Key Facts
- CGM was standardized as ISO/IEC 8632 in 1987 with major updates in 1991 and 2000, making it one of the oldest graphics standards still in use
- The format uniquely supports both vector graphics (lines, shapes, text) and raster images simultaneously within a single file structure
- CGM offers three encoding options: binary format (compact), clear text (human-readable), and character-encoded formats for maximum flexibility across systems
- The U.S. Department of Defense adopted CGM as mandatory through the CALS (Computer-aided Acquisition and Logistic Support) program, requiring all defense contractors to use CGM for technical documentation
- CGM remains widely used in aerospace, defense, manufacturing, and CAD industries for archival purposes, with many legacy systems still supporting the format for backward compatibility
Overview
CGM (Computer Graphics Metafile) is an international standard graphics file format codified as ISO/IEC 8632, first standardized in 1987 and subsequently updated in 1991 and 2000. It was designed to solve a critical problem in the computing industry: the inability to reliably exchange graphical data across different computer systems, operating systems, and software applications without loss of information or formatting.
Unlike proprietary graphics formats of the era that were locked to specific vendors or platforms, CGM provided a truly open, platform-independent framework for storing graphical information. The format could handle vector graphics (geometric shapes defined mathematically), raster images (pixel-based data), text with multiple fonts, and sophisticated color definitions all within the same file. This versatility made CGM particularly valuable for industries requiring precise technical documentation that needed to be shared across multiple organizations and computer systems.
CGM evolved through three major versions: CGM-1 (1987), CGM-2 (1991, the most widely implemented), and CGM-3 (2000). The development process involved contributions from major technology companies, government agencies, and international standards bodies, particularly those in defense and aerospace sectors where standardization was critical for national security and interoperability.
How It Works
CGM operates as a structured graphics language, encoding drawing instructions and graphical elements in a standardized format that any compliant software can interpret and render:
- Command-Based Architecture: CGM files contain a series of graphical commands written in a strict, standardized syntax. Each command specifies an action—such as drawing a line, creating a polygon, setting a color, or rendering text. The file format defines exact syntax rules for every command, ensuring that any CGM interpreter can process the file consistently.
- Dual Graphics Support: CGM uniquely integrates both vector and raster graphics within a single file format. Vector elements are stored as mathematical descriptions (defining curves and shapes by their geometric properties), while raster data can be embedded as pixel information. This dual capability distinguished CGM from most competing formats and made it ideal for complex technical documents combining precise geometric shapes with photographic or scanned imagery.
- Color and Style Preservation: CGM maintains detailed color specifications (supporting RGB, CMYK, and other color models), line styles (solid, dashed, dotted), fill patterns (solid fills, hatching, patterns), and comprehensive font information. These attributes are explicitly encoded in the file, ensuring consistent rendering across different systems regardless of the host computer's native capabilities.
- Metafile Header Structure: Every CGM file begins with a metafile header containing environment specifications, including the coordinate system, scaling factors, default colors, and device-independent parameters. This header allows applications to correctly interpret all subsequent commands while maintaining precision and proportions across different output devices.
- Multiple Encoding Formats: CGM supports three distinct encoding methods: binary (compact and efficient for file storage), clear text or ASCII (human-readable and editable with text editors), and character-encoded (for compatibility with text-based transmission systems). Organizations could choose the encoding best suited to their specific workflows and infrastructure.
Key Comparisons
| Characteristic | CGM | PostScript | SVG | |
|---|---|---|---|---|
| Standardization | ISO/IEC 8632 (1987) | Adobe proprietary (1982) | ISO 32000 (2008) | W3C open standard (2011) |
| Primary Purpose | Technical graphics exchange | Document printing | Document distribution | Web graphics |
| Vector + Raster Support | Both equally supported | Primarily vector | Both supported | Primarily vector |
| Platform Independence | High - true platform neutrality | Requires interpreter | Requires reader | Web browser native |
| File Size (Binary) | Compact, efficient | Moderate to large | Moderate to large | Moderate (XML-based) |
Why It Matters
- Technical Documentation Archiving: CGM's status as an international ISO standard meant that technical documents created in CGM format remained accessible and usable for decades. Industries producing long-lifecycle products—aircraft, infrastructure, military systems—needed documentation that would remain readable and editable for 20, 30, or 40+ years. CGM's open standard ensured this longevity.
- Defense and Aerospace Adoption: The U.S. Department of Defense adopted CGM as the mandatory standard through the CALS (Computer-aided Acquisition and Logistic Support) program. This government mandate required defense contractors, aerospace companies, and suppliers to submit all technical documentation in CGM format, dramatically expanding its adoption across industrial sectors.
- CAD System Integration: Major computer-aided design (CAD) software packages—used by engineers in manufacturing, aerospace, automotive, and construction—implemented CGM export and import capabilities. This made CGM an essential interchange format for technical drawings, allowing engineering teams at different organizations to seamlessly exchange designs and specifications.
- Historical Preservation: As a published international standard, CGM formats are documented in publicly available specifications. This ensures that even if specific software vendors discontinue support, the format remains technically recoverable. Libraries and archives maintaining historical technical documents rely on CGM's standard status for long-term preservation.
Though CGM's market share has declined with the rise of modern formats like PDF, SVG, and specialized CAD formats, it remains an essential standard for anyone working with technical documentation, defense systems, aerospace engineering, or legacy engineering workflows. Understanding CGM is critical for IT professionals, engineers, and archivists managing documents created from the 1980s through the early 2000s.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- ISO/IEC 8632 Computer Graphics MetafileISO
- Computer Graphics Metafile - WikipediaCC-BY-SA-4.0
- NIST Graphics Format SpecificationsPublic Domain
Missing an answer?
Suggest a question and we'll generate an answer for it.