<< Back to Map Development Forum   Search

Posts 1 - 12 of 12   
.svg file size too big?: 9/26/2015 06:35:35

nardavin
Level 16
Report
Hello! I just started making my first map, so I decided to create a small test map first. When I went to upload it, it said the file was too big (it isn't lying, the file is 4.5 kb when about 2kb is the max. It is literally like 16 rectangles, and the size is less than 100 x 100. What am I doing wrong? Thanks for any help.
.svg file size too big?: 9/26/2015 07:07:38


Belgian Gentleman
Level 57
Report
2mb is the max, not 2kb. Are you sure you have checked?
.svg file size too big?: 9/26/2015 07:26:28

nardavin
Level 16
Report
I'm sorry, I meant mb whenever i said kb. My file size is over 4mb and the limit is 2mb. Yes, I have checked. Could it have something to do with the fact that I used the rectangle tool?
.svg file size too big?: 9/26/2015 07:58:19


Olkani [PG] 
Level 63
Report
what is your size 100x100 px or pc or in or m ....

Have you a pic in Background ?

can you make a Screenshoot?

.svg file size too big?: 9/26/2015 07:59:53


Belgian Gentleman
Level 57
Report
That's strange. I don't know either. Rectangle tools normally never cause trouble. Make sure everything is converted into pad. Otherways I would recommend a svg optimizer for you to reduce its size, it worked already great for me.

https://petercollingridge.appspot.com/svg-editor
.svg file size too big?: 9/26/2015 08:08:14

nardavin
Level 16
Report
I deleted everything and set the size to 100 by 100 px (it was mm for some reason before). Just the blank canvas is still 4.5mb. I can create a new one and t will have a low filesize, but i have a lot of work in it already (I only made a copy and changed it down to squares to try and lower the filesize. My original file is still intact.)
.svg file size too big?: 9/26/2015 08:11:14

nardavin
Level 16
Report
The only thing that I can think of is that the tracing photo is still stored in the file somewhere after I got rid of that. To delete an image I just have to hit backspace when highlighted, right?
.svg file size too big?: 9/26/2015 08:21:18

nardavin
Level 16
Report
Ok, I think I tracked it down. Using the optimizer tool King gave me, I figured out that the xlink namespaces was where all the file size is. What is that and how do i prevent it? (Besides running the script every time)

Edited 9/26/2015 08:21:31
.svg file size too big?: 9/26/2015 08:57:39


Belgian Gentleman
Level 57
Report
Those namespaces are added svg tags in the script to link its content. They look like this: <svg> <title> <> . That takes such a great space in the script if with many paths or groups in your file. In Warlight those tags are unnecessarily and better without, rendering them useless.

How to prevent it?
Well I'm not an expert but I suspect you probably putted some shapes in your svg with special content that differented from casual shapes. Presumably you're maybe the first one on Warlight who has ever encountered this problem.
.svg file size too big?: 9/26/2015 09:01:26


Belgian Gentleman
Level 57
Report
.svg file size too big?: 9/26/2015 09:07:19

nardavin
Level 16
Report
Sounds good, at least now i can just delete that line when I am finished tracing. It may have something to do with my expert PPT cropping skills to create all of the photos :P

Anyway, thanks!
.svg file size too big?: 9/26/2015 09:20:32


Belgian Gentleman
Level 57
Report
^^ I'm glad I could help you out. You're welcome.
Posts 1 - 12 of 12