Why is this image so big?

Post questions on how to use or achieve an effect in Inkscape.
rlopes
Posts: 1
Joined: Wed Mar 23, 2016 7:50 am

Why is this image so big?

Postby rlopes » Wed Mar 23, 2016 7:53 am

And what can I do to reduce it?
Attachments
People_2.svg
(214.71 KiB) Downloaded 325 times

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Why is this image so big?

Postby tylerdurden » Wed Mar 23, 2016 8:47 am

The file has ~3000 lines of illustrator code inside. A unix/text editor can be used to clean out the code.

file is a bit smaller now. 83 lines.
Attachments
People_2.svg-td.svg
(3.49 KiB) Downloaded 294 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Why is this image so big?

Postby Polygon » Thu Mar 24, 2016 1:29 am

Or copy and paste the content into a new fresh file - page size scaled to fit content - save = 2.471 Byte:
2Logo4u.svg
(2.41 KiB) Downloaded 228 times
:

Cheers
P

Amadeus12
Posts: 66
Joined: Sat Sep 11, 2010 4:20 pm

Re: Why is this image so big?

Postby Amadeus12 » Fri Apr 01, 2016 6:06 am

Yes, there is Adobe Illustrator code inside the file.
You need to remove this code:

Code: Select all

<switch
 id="switch3"
</switch>

and this:

Code: Select all

<foreignObject
 requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/"
 x="0"
 y="0"
 width="1"
 height="1"><i:pgfRef
 xlink:href="#adobe_illustrator_pgf" /></foreignObject>

and all this this code:

Code: Select all

<i:pgf
 id="adobe_illustrator_pgf"><![CDATA[ (AND ALL THE LINES IN BETWEEN!!!!) ]]></i:pgf>


And then you have cleaned the file from superfluous data.


Return to “Help with using Inkscape”