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
- Select the structure, for example benzene, or select nothing to export the whole canvas.
- Choose
File > Export PNG.... - Under
Scope, pickSelection Only(or leaveAll Content). - Set
Scaleto4xfor a large, sharp image. The pixel size appears next toSize:. - Check
Include backgroundif the slide is not white, and set the color to match the slide. - Click
Export PNG.
Options
| Option | What it does | Default |
|---|---|---|
Filename | The downloaded file’s name; .png is added. Pre-filled as in SVG export. | |
Scope | All Content or Selection Only (available only when something is selected). | All Content |
Scale | 1x, 1.5x, 2x, 3x, 4x, 6x, 8x or 10x. Higher scales give more pixels and larger files. | 2x |
Include background | Fills behind the drawing with the color from the swatch or hex field. Cleared, the PNG is transparent. | Off |
Padding | Margin 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
- Batch Export to export many named selections as PNG at once
- Keyboard Shortcuts