Convert CGM to PNG

Turn CGM documents into PNG files. Each picture in the metafile becomes one PNG, at 150 dpi unless dpi or width says otherwise.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CGM files on the dialor turn it to pick what to do

Each CGM picture as a PNG.Every picture in the metafile is drawn at 150 dpi unless you set otherwise.

  1. What you get

    Each picture in the CGM file becomes one PNG. A metafile with several pictures gives you several PNG files, one per page or sheet.

    PNG is a lossless raster format with an alpha channel, so it suits graphics with sharp edges. The vector drawing is turned into pixels at the size you choose.

  2. What changes

    A CGM file is a vector picture, and a PNG is made of pixels. The result has a fixed size, so it does not scale up without losing sharpness the way the original does.

    Fonts that are not installed are replaced by similar ones. Text can look a little different from the original if the font is missing.

  3. Size and sharpness

    Set Resolution (dpi) to choose how many pixels each inch of the page becomes. The range is 36 to 600. Around 150 reads well on screen, and 300 is the usual choice for print. Higher is sharper and makes a bigger file.

    Set Width (px) to give the exact width of the result, from 1 to 20000 pixels. The height follows the aspect ratio unless you also give it, and then the picture can be stretched.

    To change the size of a PNG afterwards, use resize PNG.

CGM and PNG.What each format is, and the options this conversion takes.

  1. 01 · dpi

    Resolution (dpi)

    How many pixels each inch of the page becomes when it is drawn as a picture. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.

    36 to 600 default 150
  2. 02 · width

    Width (px)

    The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    1 to 20000

The formats

From · CGM

Computer Graphics Metafile

The ISO vector picture format of technical manuals, CAD plots and old presentation programs, in its binary encoding.

Extensions
.cgm
MIME type
image/cgm
Kind
Documents
To · PNG

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images

In your code.The same CGM to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert report.cgm report/ --to png
$ cv convert report.cgm report/ --to png

Questions.What people ask about CGM to PNG.

01OF 04

One for each picture in the metafile. A file with several pictures gives several PNG files, such as one per page or sheet.

150 dpi by default. Set Resolution (dpi) between 36 and 600 to change it, or set Width (px) to fix the width in pixels.

300 is the usual choice for print. Around 150 reads well on screen.

They are replaced by similar ones. The text may look a little different from the original drawing.

More conversions.Other ways in and out of CGM and PNG.