Polotno

Changelog · Aug 19, 2026

Polotno 4.9: smaller PDFs, faster Node renders and TypeScript types

Photographic PDFs are 3-8x smaller and use less memory to export. polotno-node opens a page about 3x faster, and the utility APIs ship TypeScript types.

Highlights

Smaller photographic PDFs

@polotno/pdf-export writes photographic PDFs 3-8x smaller and uses much less memory. A JPEG quality option from 0 to 1 controls photo compression, and 1 embeds photos lossless.

Faster renders in polotno-node

polotno-node launches Chrome's headless shell on macOS and Windows, so a page opens about 3x faster. Rendering without a desktop session no longer brings up the macOS crash dialog.

TypeScript types for utilities

The utility modules utils/math, utils/crop, utils/unit and utils/loader ship TypeScript types.

All changes

polotno 4.9.0 / 3.9.0

  • Fixed a dark halo on the edges of soft-edged art in exported images.
  • Fixed page thumbnails and image exports losing the text of an element while it is edited.
  • Fixed an opaque border letting a thin line of the picture show outside it.
  • Added TypeScript types for the utility APIs (utils/math, utils/crop, utils/unit, utils/loader, setLegacyRichTextEnabled).

@polotno/pdf-export 0.9.0

  • Added imageQuality: JPEG quality from 0 to 1 for photos the exporter decodes. 0.85 by default. Set imageQuality: 1 to embed them lossless.
  • imagePpi now defaults to 300, the print-shop standard. Smaller files at the same print quality. Use 450 for premium stock.
  • Photographic PDFs are 3-8x smaller. Several crops of one photo now share a single embedded image.
  • Exports use much less memory.
  • Fixed dashed figures exporting solid.
  • Fixed translucent colors on lines, image borders, table cells, text strokes and text backgrounds.
  • Fixed group opacity render.
  • Fixed SVG elements ignoring stretchEnabled, crop, flip, corner radius and border. A filtered SVG now shows its filter.
  • Fixed a dark fringe on soft-masked images when scaled down.

@polotno/svg-export 0.4.0

  • Fixed elements marked showInExport: false still being exported.
  • Fixed textTransform values other than uppercase and lowercase.
  • Fixed flipped images with a mask or a crop.
  • Fixed a gradient border running backwards on a flipped element.
  • Fixed a text background on a whitespace-only line.

@polotno/html-export 0.4.0

  • Rich text now exports only the formatting the Polotno renderers read, so the page matches the canvas.
  • Fixed shrink-to-fit text picking a font size that was too small.
  • Fixed <strike> and <del> losing their strike-through, and list attributes being dropped.
  • Fixed flipped images with a mask or clip.

@polotno/pdf-import 0.5.1

  • Different import edge case fixes.

@polotno/pptx-export 0.4.2

  • Fixed a flipped, cropped image exporting the wrong region.
  • Fixed textTransform: capitalize capitalizing the wrong words.

polotno-node 3.5.0

  • Added headless to createInstance and createBrowser. Renders now launch Chrome's headless shell on macOS and Windows: about 3x faster to open a page, and no more macOS crash dialog when rendering without a desktop session. Pass headless: true to keep full Chrome.
  • Local file: videos, audio and images are now served to the renderer, so they load whatever browser you use.
  • Includes every render fix from polotno 4.9.0 and the export packages above.

Embed creative infrastructure into your product

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai