hampusborgos / country-flags

SVG and PNG renders of all countries' flags.
3.45k stars 978 forks source link

Optimize SVGs? #149

Closed jpmckinney closed 2 months ago

jpmckinney commented 2 months ago

A few SVGs are very large. Most are less than 10kB. Here are the largest 10:

 92K ht.svg
101K fk.svg
114K pe.svg
144K do.svg
156K mx.svg
173K ec.svg
186K af.svg
229K bo.svg
236K sv.svg
379K mp.svg
jpmckinney commented 2 months ago

Nevermind - users can do this with svgo depending on what --precision they need.

wyattoday commented 2 months ago

I would be wary of just running svgo blindly or in a batch manner without comparing the visual results of the input and output. SVGO tends to mangle things if not configured correctly.

I'm going through the project and updating flags and producing trimmer SVGs as I go.