rugk / streetcomplete-quest-svgs

Extracted icons of the StreetComplete quests as SVGs
https://wiki.openstreetmap.org/wiki/Category:StreetComplete_Quest_Icon
Other
5 stars 1 forks source link

Minimize images #6

Closed rugk closed 4 years ago

rugk commented 6 years ago

Originally I saved all images in the optimized/ dir only by choosing "Optimised SVG" in Inkscape. As I've described you could however still minimize them even more with that tool.

goldfndr commented 6 years ago

Indeed. While the "old" optimized ic_quest_notes.svg was using 4 decimal places, the "new" optimized one is using 8, even more than the unoptimized's 6-7. That seems like an easy bug report for whatever tool you used.

rugk commented 6 years ago

The thing is now I optimize the images using SVGOMG. (see contributing) Previously I only minimized them using Inkscape.

This is an easy PR for anyone who just wants to optimize all images in the "optimized" dir. If anyone wants to do some batch (or manual) processing there.

goldfndr commented 6 years ago

The thing is now I optimize the images using SVGOMG

You did? I tried it just now (via pasting the source code of the optimized image in the web interface) and it reduced the precision of the decimals to 3 places. Hmm...

rugk commented 6 years ago

Well… yeah, because I am stupid. That is meant with precision there…

As I write in the Contributing:

Select the highest possible precision.

I'll change that.

If you want to re-optimize them with 3 decimal places (I think that is enough), just do so. In any case the issue here, is about optimizing all images, anyway.

Binnette commented 4 years ago

Is it that important to shrink files from 5.5 Ko to 5.3 Ko?

rugk commented 4 years ago

No.