Skip to content

v3.2.0

Compare
Choose a tag to compare
@SethFalco SethFalco released this 02 Jan 00:06
· 79 commits to main since this release
252b28c

What's Changed

Bug Fixes

SVG Optimization

  • convertPathData, improves closing paths and how we determine if to use absolute or relative commands. By @KTibow in #1867
  • convertPathData, round arc or convert to lines based on the sagitta, can be disabled by setting smartArcRounding to false. By @KTibow in #1873
  • convertPathData, convert cubic Bézier curves to quadratic Bézier curves where possible, can be disabled by setting convertToQ to false. By @KTibow in #1889

Performance

Metrics

Before and after using vectors from various sources, with the default preset of each respective version:

SVG Original v3.1.0 v3.2.0 Delta
Arch Linux Logo 9.529 KiB 4.162 KiB 4.115 KiB ⬇️ 0.047 KiB
Blobs 50.45 KiB 42.949 KiB 42.623 KiB ⬇️ 0.326 KiB
Isometric Madness 869.034 KiB 550.153 KiB 540.582 KiB ⬇️ 9.571 KiB
tldr-pages Banner 2.071 KiB 1.07 KiB 1.07 KiB
Wikipedia Logo 161.551 KiB 116 KiB 111.668 KiB ⬇️ 4.332 KiB

Before and after of the browser bundle of each respective version:

v3.1.0 v3.2.0 Delta
svgo.browser.js 660.9 kB 910.9 kB ⬆️ 250 kB