Inkscape versus Illustrator: The SVG file size throwdown

| | Comments (1) | TrackBacks (0)

I tried a simple test today. I created identical graphics in Inkscape and Illustrator. Both had the same canvas size, same colors, shapes and text. Here's what the simple graphic looked like:

test graphic

I saved the graphic in both programs as an SVG file. Inkscape created an SVG file that was 3K; Illustrator's was a ridiculous 473K. I wanted to know what caused the dramatic difference.

A co-worker suggested I open the SVG files in notepad and take a look. The Illustrator file contains many lines of garbage code, whereas the Inkscape file is simple and streamlined. To quantify it, I pasted the full text file into Word and counted the lines. The Illustrator file totaled 12,512 lines while the Inkscape file was only 89.

Is this sad showing the best Illustrator can do?  Fortunately for Adobe, it's not.

llustrator has hidden a very useful option in its "Save for Web" feature. In the thousands of times I've used this feature to quickly create cleanly compacted jpegs, gifs and pngs, I had never noticed that there was another option there for saving as SVG.

Select the SVG option in Illustrator's "Save for Web" screen, and the result is a streamlined SVG file that even beats Inkscape. In my test, the same graphic was saved as 2.3K and only 58 lines of code.

Conclusions: As long as you use the "Save for Web" option, both Illustrator and Inkscape do an excellent job of creating lean, developer-friendly SVG files, with a slight edge going to Illustrator. That being said, if creating SVGs is the main thing you're looking for in a vector art program, the difference isn't worth Illustrator's $599 price tag. Save your money and download Inkscape.

File Size

Lines of code

Illustrator SVG

473K

12,512

Inkscape SVG

3K

89

Illustrator "Save for Web" SVG

2.3K

58

 

1 Comments

Arenlor said:

I can tell you why this occurred. For anyone who cares, it's also the basis of a 'bug' in Illustrator. http://wiki.inkscape.org/wiki/index.php/Inkscape_Wiki:FAQ#I_exported_an_SVG_file_from_Adobe_Illustrator.2C_edited_it_in_Inkscape.2C_and_imported_back_to_AI.2C_but_there_my_changes_are_lost.21
Those lines are actually a binary representation of the image.

Leave a comment


Type the characters you see in the picture above.

0 TrackBacks

Listed below are links to blogs that reference this entry: Inkscape versus Illustrator: The SVG file size throwdown.

TrackBack URL for this entry: http://www.nearinfinity.com/mt/mt-tb.cgi/447