<< Back to Map Development Forum   Search

Posts 1 - 3 of 3   
Help: 11/8/2018 01:17:05

Level 56

Edited 11/21/2018 06:57:33
Help: 11/8/2018 12:49:11

Level 56
Yeah, it's hard to stay under the 2MB limit. Without seeing the SVG, I can't give specific tips, so here's some broad tips that always help:

- Combine (ctrl-k) everything that can be combined. Everything that can have the same colour and name can be combined. All the dots around the coast line can be combined; all the patches of grass can be combined; etc.
- Use straight lines instead of curves wherever you can (but it seems you did this already - not sure about the small aesthetics).
- If I remember correctly, cloning an object instead of duplicating or copy/pasting saves space.
- If you've made a lot of versions and corrections since beginning, simply using the "clean up document" feature in Inkscape (under "file") can shave off a lot too.
- Depending on the scale you're working on, you can go to File>Inkscape Preferences>SVG output and lower the precision.

If all else fails, I'm a fan of SVGomg (at https://jakearchibald.github.io/svgomg/), but it has a habit of ruining your file, so always use a back-up.
UNCHECK "round/rewrite paths".
If you've already done bonus and territory names, UNCHECK "Clean ID's".
All other features can be on. Sliding down the "precision" slider will help a lot, but will cost you the fine details of the aesthetics, so play around with the costs/benefits of that.


In general, simply combining all that can be combined and removing all unused layers, duplicates and temporary (meta) data will be enough (I got my Flower Wars map from 4 MB down to 3 MB by just doing that). If you're willing to sacrifice detail, SVGomg can get it down by another 50%.
If you're really desperate, you can open the SVG file in a tekst editor and remove all useless spaces, decimals, inkscape configurations etc., which takes hours and will save maybe another 0,1 MB (not recommended :p)

Looking forward to the map!

Edited 11/8/2018 12:50:24
Help: 11/8/2018 18:46:06

Level 59
Also save the SVG as a plain SVG instead of the usual file save, it gives you a little bit more space. The only thing is you have to change the save back to the standard save before you close inkscape.
Posts 1 - 3 of 3