Skip to content

PNG Export

To export a PNG, choose File > Export PNG..., set the scale and background, and click Export PNG.

A PNG is a fixed-pixel image for documents, slides and chat messages. Molkit renders an SVG of your drawing and rasterizes it in the browser, so the image matches the canvas. For a figure you may resize or recolor later, export SVG instead: a PNG enlarged past its export size looks soft or blocky.

Export a sharp image for a slide

  1. Select the structure, for example benzene, or select nothing to export the whole canvas.
  2. Choose File > Export PNG....
  3. Under Scope, pick Selection Only (or leave All Content).
  4. Set Scale to 4x for a large, sharp image. The pixel size appears next to Size:.
  5. Check Include background if the slide is not white, and set the color to match the slide.
  6. Click Export PNG.

Options

OptionWhat it doesDefault
FilenameThe downloaded file’s name; .png is added. Pre-filled as in SVG export.
ScopeAll Content or Selection Only (available only when something is selected).All Content
Scale1x, 1.5x, 2x, 3x, 4x, 6x, 8x or 10x. Higher scales give more pixels and larger files.2x
Include backgroundFills behind the drawing with the color from the swatch or hex field. Cleared, the PNG is transparent.Off
PaddingMargin in pixels around the drawing, 0 to 200.20

The preview and pixel dimensions update as you change options. The dialog starts from your last PNG export, in any document and after a reload; the filename is not carried between documents.

Fonts used in the drawing are embedded before rasterizing, so labels keep their typeface even on a machine that lacks the font.

If the app is displayed in a dark theme, a PNG with a light background or a transparent one is drawn with dark ink, so bonds do not come out near-white on a white page. A dark background keeps the light ink.

Copy as image

To put an image on the clipboard instead of saving a file, press Ctrl+Shift+C. With a selection, only the selection is copied; otherwise the whole canvas is. A toast confirms the copy, and you can paste the structure straight into a word processor or chat.

The copied image always has a white background and a high pixel scale. It ignores the export dialog’s background setting, so use Export PNG when you need transparency.

With the default black-and-white color scheme, a transparent PNG placed on a dark slide shows black bonds on a dark background. Check Include background, or recolor the drawing first.

See also