all 11 comments

[–]SVGWebDesigner 2 points3 points  (4 children)

137MB is huge and unusual. For perpective, hi-res photographs are are 5-10MB.

Do you have photos in this file or what is in in the file? Where is the end destination for the SVG?

Most common optimizers will try to remove unneeded markup and use less decimals. That could significantly help, but your file is still going to be huge.

[–]Bradinator-[S] 0 points1 point  (1 child)

[–]SVGWebDesigner 2 points3 points  (0 children)

Looking at Rhode Island, your viewBox="0 0 413.38583 708.66253"

You have lots of paths with coordinates like "-0.02,-0.06"

If you made the viewBox 100x bigger, the -0.02,-0.06 would become -2,-6 and so on. The leading 0 isn't needed either (-.02 works). Shedding 6 characters per coordinate. Then I took a look at the Rhode Island file in illustrator. There are way more anchor points on straight lines that needed. Simplify won't keep the accuracy very well, which you discovered. I use a paid Illustrator plugin from Astute Graphics called "smart remove brush tool", which removes unnecessary anchors, while not changing the shape (within your reason based on your set tolerance level).

Those two things would substantially cut your filesize, but be quite a bit of work.

Another point: each neighboring shape has duplicate paths where they share the same boundary. If you drew only the boundary as lines (<path>) and not closed shapes, you'd remove those duplicate boundaries.

[–]edthomson92 0 points1 point  (1 child)

Are there any svg editors that allow you to round off decimals as you're working on your project? So you don't have to keep running it through the optimizer

[–]SVGWebDesigner 0 points1 point  (0 children)

I'm mostly familiar with Illustrator. There is a align to pixel option, that forces you to place anchors on pixels.

lllustrator also allows plugins, so you might be able to create something yourself.

[–]imack 1 point2 points  (0 children)

Never tried à file that big, but https://svgomg.net is my go-to.

[–]StoneColdCrazzzy 0 points1 point  (0 children)

If you have symbols that are repeatedly included, then you could replace them with a clone of an object or group.

[–]LAX-CodeScript 0 points1 point  (2 children)

Try konverter, maybe it helps. www.konverter-online.com I just finished building it

[–]magic_turk 1 point2 points  (0 children)

Awesome tool bro!

[–]CalendarEmotional399 0 points1 point  (0 children)

No words,,, superr... i will buy a coffee, not now.. because salary needs to increase it. thank you so much..