Online tool for editing flag SVG image source
This tool helps editing SVG source files (in xml
or pug
format), with the focus on minimal file size (currently it just rounds path coordinates to make paths shorter).
Why what?
Well, recently I needed phone picker control (you know, international, with flags and stuff) and found out these controls are usually using single PNG image with sprites. Which is not cool, I thought. So I want to make it with SVG flags, but existing svg flag collections (I mean this awesome flag-icon-css) is too big for little cute control. That's why I want to try to make it as small as possible.
Let's say, < 1000
bytes each. So, like, less than 200k in total.
Obviously, that means flags cannot be very detailed, but that's ok, as they are supposed to be used as small thumbnails.
Great! You can draw your favorite (or least favorite, whatever) flag in any vector editor (flag size is 240x180), save it in SVG and paste the source in this tool. Then, clean it up and make a PR in micro-flag-icons repo.
I dunno. I like it. It's just much better than XML.