Skip to content

chore: optimize logo and Android foreground SVGs - #320

Merged
kipavy merged 1 commit into
devfrom
chore/optimize-svgs
Sep 19, 2026
Merged

kipavy merged 1 commit into
devfrom
chore/optimize-svgs

Conversation

@kipavy

@kipavy kipavy commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

svgo pass (multipass, precision 2) over the two SVGs that carry real weight. viewBox and ids are kept (logo.svg is scaled by CSS height and inlined by svgr, so both matter).

  • logo.svg: 11689 to 9240 B (inlined into the JS bundle)
  • src-tauri/icons/android-foreground.svg: 11751 to 9295 B

Rendered with resvg at 24 px and 512 px on light and dark backgrounds: mean per-channel difference under 0.06/255, no size change. android-background.svg (149 B) left alone.

Run through svgo (viewBox and ids kept, precision 2). Rendered output is
pixel-equivalent at 24 px and 512 px (mean per-channel diff under 0.06/255).
logo.svg is inlined into the JS bundle via svgr, so the saving ships to users.
@kipavy
kipavy merged commit 805c396 into dev Sep 19, 2026
4 checks passed
@kipavy
kipavy deleted the chore/optimize-svgs branch September 19, 2026 08:33
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.

1 participant