Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization: reduced size by 3x #68

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Logarithmus
Copy link

@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
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