<< Back to Map Development Forum   Search

Posts 21 - 40 of 47   <<Prev   1  2  3  Next >>   
SVG file is too big - pls help: 10/12/2020 12:49:03

OligarchMagic
Level 40
Report
JK_3 I have about 1400 territories and 400 bonuses so it won't be this the problem
SVG file is too big - pls help: 10/12/2020 14:00:34


Murk 
Level 57
Report
I've taken a look at the .svg file as well.
It's definitely doable. I'll walk you through some steps that help.

Most problematic are indeed the texts.
It's a nice font, so you don't want to touch the big titles, names and headers too much.
Instead, I gave each of the small texts (the street names and mountain names etc.) one ctrl-L.
Not all at once! Just selected each street name, pressed ctrl-L, selected the next, etc. Doing this one time for each street name separately keeps the font mostly similar (for the small text you'll barely notice), and the big text can stay as it is.
For me, this lowers file size from 3.16MB to 2.35MB.

Next, combine (ctrl-K) everything that has the same stroke and fill. Select all the small, black text (Edit > select same > fill and stroke helps) and combine it. Then do the same for all the small, white text. Then the big white text. Then select all the dashed lines (mountain routes?) and do the same. If you want to be thorough, you can even do the same for all the black arrows leading to the street names.
For me, this lowers file size from 2.35MB to 1.94MB.

Another thing you could do - but would be a bit more work - is redo the green background. Right now, every group of territories is "cut out" of the green background, so to say. This isn't necessary: territories will always show over background in Warzone anyway.
Instead, you could only draw the outlines of the green background and fill it green (and put it on the bottom of the layer for easier working). That would save a lot of nodes.
If you want to keep the black lines in between (not sure) you could just add those manually.
Not sure if I explained it well.
I tried it out, which brought file size down to about 1.88MB.

Then some smaller things:
Giving the lakes one ctrl-L each is another 0.01MB
Removing the "stroke paint" from each territory (Warzone will give them a stroke anyway) is another 0.02MB
Removing the "fill colour" from each bonus link (Warzone will give them a colour anyway) something similar.

All together, should be enough to get you well below 2MB without changing how the map looks in any significant way.

For future project, I'd advise to keep lines a little less wriggly (the dashed mountain paths, for example), to use octagons (or more) instead of circles and to pick a less fancy font. It would be a shame to have to redo it all at this point, so I hope the above is enough.


If all else fails, https://jakearchibald.github.io/svgomg/ is an amazing minifier.
Unlike the minifier JK_3 recommended, this one allows you to give really detailed settings about what you want to remove and what you want to keep.
It's been a while since I used it, so I don't know the exact settings you need any more. You'd have to play around with it a lot (and make back-ups!!!), but once you've got the right settings you can pretty much half the file size without changing anything about its appearance.
Always do this last, because it makes making changes very difficult.


Also also, please keep in mind most of these are tricks to lower the file size. They won't make the map run faster: in practice, I'd say the opposite.

Let me know if everything makes sense.

Edited 10/12/2020 15:57:26
SVG file is too big - pls help: 10/12/2020 14:57:34


Farah♦ 
Level 61
Report
Now THAT'S a proper explanation.
SVG file is too big - pls help: 10/12/2020 14:58:32


0x
Level 49
Report
yeah
SVG file is too big - pls help: 10/12/2020 14:58:51


rick
Level 59
Report
I don't even understand this but thanks murk
SVG file is too big - pls help: 10/12/2020 14:59:18


0x
Level 49
Report
longest, most complicated, explanitory, forum post i have seen
SVG file is too big - pls help: 10/12/2020 14:59:44


0x
Level 49
Report
and i understand none of it
SVG file is too big - pls help: 10/12/2020 15:00:08


Ocean0.1 
Level 59
Report
Well, if I ever have an SVG that’s too big, I know how to solve it now
SVG file is too big - pls help: 10/12/2020 15:00:30


0x
Level 49
Report
that's probably cause i did not read and i am not specialized at computer stuff
SVG file is too big - pls help: 10/12/2020 15:02:40


Quantum Entity
Level 54
Report
This should be in some sort of manual. Thanks for the info!
SVG file is too big - pls help: 10/12/2020 15:03:18

OligarchMagic
Level 40
Report
Thanks so much Murk, I'll try to follow your advices and will let you know. What do you mean with "make the map run faster"?
P. S. If this works I'll write thanks to who helped me in the map, you all deserved it
SVG file is too big - pls help: 10/12/2020 15:04:03


Farah♦ 
Level 61
Report
It should make sense to the thread starter; judging from his map it looks like he knows his way around Inkscape.

For the background, you could copy the territories that are bordering your background's borders. Then combine those territories to create an outline, then simplify that, fill it with the desired color and paste it back into your map. It's a hacky solution but it should save a lot of nodes.
SVG file is too big - pls help: 10/12/2020 15:04:05


Quantum Entity
Level 54
Report
Probably loading times, reduces lag, etc.
SVG file is too big - pls help: 10/12/2020 15:07:25

OligarchMagic
Level 40
Report
Yeah, what Murk said makes sense to me, and thanks Farah for the kind words but this is the first "serious" map I make so I judge myself a beginner with Inkscape, anyway I'm glad you liked my map, I hope to be able to publish it soon.
SVG file is too big - pls help: 10/12/2020 15:12:54


JK_3 
Level 63
Report
if you manage to get your map uploaded, would you mind sharing the map preview link so I can see how it looks as well?
SVG file is too big - pls help: 10/12/2020 15:14:28


Loxiiv 
Level 58
Report
if you permanently delete it it will take up a negligible amount of space, you can literally store an infinite amount like that, with the minor inconvenience that you can't get them back
SVG file is too big - pls help: 10/12/2020 15:21:38

OligarchMagic
Level 40
Report
JK_3 how do I do that?
SVG file is too big - pls help: 10/12/2020 15:22:28


Farah♦ 
Level 61
Report
https://www.warzone.com/SinglePlayer?PreviewMap=MapID

Substitute MapID for the ID of your map
SVG file is too big - pls help: 10/12/2020 15:24:09


JK_3 
Level 63
Report
Go to the map designer > Edit your map > Link for sharing (bottom green button) > Public link
SVG file is too big - pls help: 10/12/2020 15:56:01


Murk 
Level 57
Report
Yeah, it wasn't very good general advice since it's based on this specific SVG file (which not everyone can even access).
Will be interesting to see the end result, indeed. It's looking good so far!


As for
What do you mean with "make the map run faster"?

Especially with the online minifiers (or by messing around in the data of the file yourself) you can cram a lot of extra stuff in the 2MB limit, but it tends to make maps slow.
To use a silly analogy: by pushing hard you can cram a lot more in a suitcase, but it will make for a very heavy suitcase.
I don't think this is relevant for your map; just a general advice.

Edited 10/12/2020 15:56:20
Posts 21 - 40 of 47   <<Prev   1  2  3  Next >>