Skip to content
Open in

Image Editor ​

The built-in Image Editor edits images without leaving the email editor. It opens from the Edit and Create new image buttons in an image's settings.

Adjusting an image ​

The Edit tool on the left of the Image Editor holds duotone presets and the Adjust image panel. Its sliders cover Brightness, Exposure, Saturation, Vibrance, Contrast, Blacks, Whites, Temperature, Tint, Hue rotation, Grayscale, Noise, Blur, Sharpness, Emboss, and Pixelization. Below the panel, a Vignette section adds a vignette with its own color and strength.

Auto adjust corrects an image's light and color in one click. It is the icon button next to the panel title. It analyzes the image's colors and brightness (no AI is involved) and sets the white balance, exposure, black and white points, vibrance, and saturation. The values it picks appear on the sliders, so they can be fine-tuned like any manual change. Two limits apply:

  • It only raises exposure, never lowers it.
  • On logos and other flat graphics, it leaves exposure and the black and white points unchanged.
Adjust image panel with the Auto adjust button

Once any slider has moved, two more icon buttons appear next to Auto adjust; their tooltips name them. Hold to see original shows the unedited image for as long as it is held, and Reset adjustments sets every slider back to zero.

To remove the whole Edit tool, including Auto adjust, list edit_bg in imageEditorOptions.hideControls.

Fonts ​

The image editor's text tool draws its font list from the same customFonts option as the rest of the editor. Fonts configured there appear in the font picker when adding or editing text on an image.

Configuration ​

The image editor receives whatever is set in customFonts, so no separate configuration is needed:

ts
const TOPOL_OPTIONS = {
  // ... other options ...
  customFonts: {
    override: false, // If true, it replaces default fonts. If false, it appends.
    fonts: [
      {
        label: "Mukta",
        style: "Mukta, sans-serif",
        url: "https://fonts.googleapis.com/css2?family=Mukta:wght@400;700",
      },
    ],
  },
};

Full details on the shape of each font entry are in Custom Fonts.

Default fonts ​

Without customFonts, the picker shows the image editor's own bundled font list. Setting override: false appends to that list, while override: true replaces it.

INFO

customFonts is shared with the email editor's font dropdown, so a font added for one appears in both.

Disable the Image Editor ​

Setting imageEditor: false removes the built-in Image Editor from the editor. The Edit and Create new image buttons disappear from the image settings, and Create new image disappears from the built-in File Manager.

ts
const TOPOL_OPTIONS = {
  // ... other options ...
  imageEditor: false,
};

An image saved from the Image Editor is uploaded by the editor itself - to TOPOL storage, or to your API.IMAGE_UPLOAD endpoint when Self-hosted Storage is configured. Disable the Image Editor when every image must stay in your own storage. The option defaults to true.