Skip to content

Optimization: reduced size by 3x#68

Draft
Logarithmus wants to merge 9 commits intomadmaxms:masterfrom
Logarithmus:master
Draft

Optimization: reduced size by 3x#68
Logarithmus wants to merge 9 commits intomadmaxms:masterfrom
Logarithmus:master

Conversation

@Logarithmus
Copy link
Copy Markdown

@Logarithmus Logarithmus commented Oct 5, 2020

Hello. I love Obsidian icon theme, because it has consistent icons for almost all programs. But the size is quite big.
I've spent 2 days optimizing it

  • removed redundant PNG icons for which there's SVG alternative (I wrote simple program in Rust for that);
  • replaced duplicate icons with symlinks (rdfind + symlinks did a great job!);
  • optimized SVG icons with svgcleaner
    Now the optimized version is only 109 MiB vs 314 MiB for original version.

Note: files in main branch aren't optimized with svgcleaner, because it makes future editing of SVG icons really hard (kinda like editing minimized JavaScript). Without svgcleaner, total size is 250.7 MiB.
Fully optimized files can be found in svgcleaned branch of my fork.
Release: v4.14

@Logarithmus
Copy link
Copy Markdown
Author

Also I suggest you to create svgcleaned branch to store svgclean'ed versions of themes

@Logarithmus Logarithmus marked this pull request as draft October 5, 2020 22:02
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