Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a custom static map. So, I convert my image into the svg file and use it into the html page. But my SVG file size goes very high around 50MB so it is not working properly and my HTML page is just loading.
Is there any other way to achieve it or reducing svg file size?

What I have tried:

I tried to convert the file using some tools but some tools do not support this large file and some reduced it to 10MB but changed resolution.
Posted
Updated 24-May-19 3:20am

1 solution

You can try your luck with the tools svgcleaner[^] and svgo[^].
 
Share this answer
 
Comments
jaideepsinh 24-May-19 9:41am    
Thanks for your response. I am not very much aware of this so can you explain how I use this both given project?
Thomas Daniels 24-May-19 9:43am    
The simplest ways to use them: for svgcleaner use the GUI (download at https://github.com/RazrFalcon/svgcleaner-gui/releases ), for svgo use the web-app at https://jakearchibald.github.io/svgomg/
jaideepsinh 27-May-19 2:25am    
It gives Unsupported token error.
Thomas Daniels 27-May-19 2:41am    
Sounds like it does not like your SVG, then... I don't know what to do about that.
jaideepsinh 27-May-19 2:46am    
OK thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900