Skip to content

Optimize all SVG assets using SVGO#1769

Open
carlhoerberg wants to merge 1 commit intomainfrom
optimize-svg
Open

Optimize all SVG assets using SVGO#1769
carlhoerberg wants to merge 1 commit intomainfrom
optimize-svg

Conversation

@carlhoerberg
Copy link
Copy Markdown
Member

Optimize all SVG assets using SVGO, with multipass and precision of 2.

SVGO cut the total SVG payload almost exactly in half:

  • Before (main): 84,896 bytes (82.9 KB)
  • After (optimize-svg): 42,331 bytes (41.3 KB)
  • Saved: 42,565 bytes (41.6 KB) — 50.1% reduction

With multipass and precision of 2, saves ~20% of the total size of all
SVGs.
@carlhoerberg carlhoerberg requested a review from a team as a code owner March 1, 2026 15:01
@kickster97 kickster97 requested a review from bengtmagnus March 4, 2026 08:11
bengtmagnus
bengtmagnus previously approved these changes Mar 23, 2026
Copy link
Copy Markdown
Contributor

@bengtmagnus bengtmagnus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ThomasSarlin
Copy link
Copy Markdown
Contributor

ThomasSarlin commented Mar 23, 2026

Smiley lost its eyes, might be more stuff that has been "lost":
image

@bengtmagnus
Copy link
Copy Markdown
Contributor

Oh, yeah I see it now. Maybe have to look into another way to do this?

@bengtmagnus bengtmagnus self-requested a review March 23, 2026 12:23
@bengtmagnus bengtmagnus dismissed their stale review March 23, 2026 12:25

Let's check for a way to not have them altered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants