The new @polotno/email-export turns a design page into HTML you can send as an email. Text stays live in Gmail, Outlook, Apple Mail and Yahoo, and the rest of the page is drawn into images behind it. Email export docs
Changelog · Nov 17, 2026
Polotno 4.21: email export and InDesign import
Two new packages: @polotno/email-export turns a design into email HTML with live text, and @polotno/idml-import opens InDesign files as editable designs.
Highlights
Email export
InDesign import
The new @polotno/idml-import opens Adobe InDesign .idml files as editable designs, in the browser and in Node.js. Text frames, shapes, lines, pictures and tables arrive as separate elements. IDML import docs
Your own color picker
setColorPickerContent in polotno/config replaces the popover of every colour control with your own component. Docs
Faster PNG export in Node
@polotno/image-export writes PNG about 3x faster, with smaller files and the same pixels. Options
Breaking changes
- @polotno/video-export 0.6.0: Requires polotno 4.21.0 or later. Setup
- @polotno/pdf-export 0.17.1: The browser build no longer defines globalThis.Buffer or globalThis.process.
All changes
@polotno/email-export 0.1.0First release
- Turns a Polotno design page into HTML you can send as an email, in Node.js and in the browser.
- Text stays live wherever Gmail, Outlook, Apple Mail and Yahoo can all show it, so it survives blocked images, scales with the reader's font size, and can be selected, searched and read aloud. The rest of the page is drawn into images behind it.
npm install @polotno/email-exportimport { jsonToEmailHTML } from '@polotno/email-export';
const { html } = await jsonToEmailHTML(store.toJSON(), {
key: 'YOUR_API_KEY',
// email clients block inline images, so each slice is hosted
uploadImage: async ({ bytes, mimeType, name }) => uploadAndGetUrl(bytes, mimeType, name),
});- Full docs and usage: polotno.com/docs/email-export
@polotno/idml-import 0.1.0First release
- Converts Adobe InDesign .idml files into editable Polotno designs, in the browser and in Node.js. Text frames, shapes, lines, pictures and tables arrive as separate elements, never as a flattened page image.
npm install @polotno/idml-importimport { idmlToJson } from '@polotno/idml-import';
const json = await idmlToJson({ idml: await file.arrayBuffer() });
store.loadJSON(json);- Full docs, with fonts and linked graphics: polotno.com/docs/idml-import
polotno 4.21.0 / 3.21.0
- Added setColorPickerContent in polotno/config: replaces the popover of every colour control with your own component. Docs
- GIF crops fit the element as image crops do.
- GIF animations start when the element enters the timeline.
- Side handles crop GIF and Lottie elements, as they crop images and videos. A width or height typed in the toolbar follows the same rule.
- Fixed exports depending on the editor's zoom.
- Fixed GIF export of multi-page designs: every page animates at its own time, the frame count is exact, and the selected page stays selected.
- Fixed rich-text headings sometimes drawing in a fallback font.
- Fixed undo during text editing stopping the undo history.
- Fixed underline offset, thickness, colour and style being lost when text is edited.
- Fixed an image with an empty src blocking export.
- Fixed the download button staying disabled after a failed PDF export.
All exporters@polotno/svg-export 0.13.0, @polotno/html-export 0.12.0, @polotno/pdf-export 0.17.1, @polotno/image-export 0.2.0
- Fixed figure shadows in SVG, HTML and PDF: a figure casts its shadow from its fill alone, as in the editor.
- Fixed line shadows in SVG, HTML and PDF: the line casts it, its heads do not.
- Fixed lines with a gradient colour in SVG, HTML and PDF.
- Fixed dashed figure strokes wider than half the figure in SVG, HTML and PDF.
- Fixed dotted, dashed, double and wavy text decorations in SVG and PDF.
- Fixed two elements with the same effect at different intensities in SVG and HTML.
- Fixed borders of clipped images in SVG and HTML.
- Fixed custom font weights in PDF and image export: bold and variable fonts follow the weight the design declares, as in the editor. How fonts are declared
@polotno/svg-export 0.13.0
- Pages with their own size export at that size.
- Fixed non-Latin text in Google fonts drawing in a fallback font.
- Fixed overlines and text background colours.
- Fixed right-to-left paragraphs inside left-to-right text.
- Fixed regular and upright text inside bold or italic text.
- Fixed corner radius on pill-shaped images.
@polotno/html-export 0.12.0
- Fixed small figures shifting down.
- Fixed headings, reversed lists and nested list markers.
- Fixed groups on pages with an image background.
- Fixed cropped videos and videos with a start time.
@polotno/pdf-export 0.17.1
- Fixed enlarged PNG images looking pixelated.
- Fixed blur on curved text. Blurred curved text is drawn as an image.
- Fixed blur on clipped, masked and cropped images.
- Fixed oblique text exporting upright.
@polotno/pptx-export 0.13.0
- Transparent and translucent page colours export over white, as the editor shows them.
- Fixed transparency of text backgrounds, line colours and figure strokes.
- Fixed dotted table borders exporting dashed.
- Gradient text strokes export in their first colour. Gradients in each export
- Added warnings for dropped text filters, video effects, audio and page bleed.
@polotno/image-export 0.2.0
- PNG export in Node is about 3x faster and writes smaller files, with the same pixels.
- Added compressionLevel: PNG compression from 0 to 9 in Node. 1 by default; higher values trade speed for smaller files. Options
- GIF crops fit the element, as in the editor.
- Fallback fonts download only for characters the design's own fonts lack.
- Fixed borders on images with an empty source.
@polotno/video-export 0.6.0
- Export no longer switches the editor's selected page.
- Pages with zero duration are skipped. A design whose pages all have zero duration rejects with VIDEO_FAILED.
- Fixed audio of videos inside groups. Hidden videos are silent.
- Frame counts are exact.
polotno-node 3.18.0
- Renders with polotno 4.21.0 and @polotno/video-export 0.6.0, with their changes above.
- Fixed a reused page failing on its second run with onProgress.
- Puppeteer 25.17.0 (Chrome 157).
All importers@polotno/pdf-import 0.13.1, @polotno/psd-import 0.3.4, @polotno/svg-import 0.2.5, @polotno/pptx-import 0.1.1
- Different import edge case fixes.
@polotno/schema 0.13.0
- An element width or height of 0 or less now reads as 1, as the editor draws it. Every exporter and importer in this release follows it. Schema reference
Embed creative infrastructure into your product
TRUSTED BY
100,000+
CREATORS
300+
BUSINESSES
