Media editor: build vs buy in the age of AI
Polotno

Release: email HTML export and InDesign import

By Anton Lavrevov · Nov 17, 2026

Polotno designs can now go out as email, and InDesign files can now come in as editable designs. This release adds a package for each, and PNG export that runs about three times faster in Node.js.

Send your designs as email

An email made from one exported image looks right, but its text is gone. It disappears when images are blocked, it cannot be searched, and it is not read aloud.

@polotno/email-export keeps the text. Every text element stays real HTML text wherever Gmail, Outlook, Apple Mail and Yahoo can all show it. The rest of the design is drawn by the editor's own renderer and laid out behind that text as image slices. The email looks like the design, and its text still works: readers can select it, search it and enlarge it, and it stays when images are blocked.

ts
import { jsonToEmailHTML } from '@polotno/email-export';

const { html } = await jsonToEmailHTML(store.toJSON(), {
  key: 'YOUR_API_KEY',
  uploadImage: async ({ bytes, mimeType, name }) => uploadAndGetUrl(bytes, mimeType, name),
});

Areas of one color become plain colored cells, so an email of text on a flat background needs no images at all. For phones, design a second page and pass it as mobilePageId: narrow screens show it instead.

Read the email export docs.

Open InDesign files in your editor

If your users design in InDesign, their files can now become Polotno designs. @polotno/idml-import reads the .idml file InDesign saves and turns each page into a Polotno page. Text frames, shapes, lines, pictures and tables arrive as separate elements your users can edit, not as a flat picture of the page.

ts
import { idmlToJson } from '@polotno/idml-import';

const json = await idmlToJson({ idml: await file.arrayBuffer() });
store.loadJSON(json);

Pass in the fonts and linked images that InDesign's Package command collects, and the import uses them. Placed PDF and Photoshop graphics can become editable elements too, through PDF import and PSD import. CMYK colors stay CMYK, ready for print.

Read the IDML import docs.

PNG export, about 3x faster

@polotno/image-export now encodes PNG with the settings Chromium uses. Measured by Polotno, a 1080x1080 photo page renders in about 54 ms instead of 157 ms. The files are smaller and the pixels are the same. For even smaller files, raise the new compressionLevel option. Image export docs.

Upgrade

bash
npm install polotno@4.21.0 @polotno/email-export @polotno/idml-import

React 18 projects use polotno@3.21.0. If you use @polotno/video-export, update it to 0.6.0 together with polotno.

Everything else in this release is in the changelog.

Skip the build, cut dev costs, launch faster

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai