this post was submitted on 20 Jun 2023
2 points (100.0% liked)

Neovim

2159 readers
3 users here now

founded 1 year ago
MODERATORS
 

A quick-and-dirty plugin to optimize your svg files in nvim using svgo

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago (1 children)

What do you mean by “optimizing”?

[–] [email protected] 2 points 1 year ago

Quote from svgo:

SVG Optimizer is a Node.js-based tool for optimizing SVG vector graphics files.

Why?

SVG files, especially those exported from various editors, usually contain a lot of redundant and useless information. This can include editor metadata, comments, hidden elements, default or non-optimal values and other stuff that can be safely removed or converted without affecting the SVG rendering result.