Inkscape produces huge output (=large file sizes)?

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
Ede_123

Inkscape produces huge output (=large file sizes)?

Postby Ede_123 » Tue Nov 17, 2009 8:35 am

Hi,

I'm experiencing a quite annoying problem when saving files with Inkscape:
Most of the time the output is much larger then the input-files were.

Here are three sample files showing more or less the same content:
One .svg exported by Gnuplot (26KB)
One .ps exported by Gnuplot (26KB)
One .pdf crated from .ps by ps2pdf.exe from MiKTeX 2.7 package (only 7KB !)
http://www.mediafire.com/?sharekey=23659a6a5da3f5e11bee9a6e9edd9c7650814c1703337c5dbf1b77d2eb488dac

When I save these files in Inkscape (no matter if I save the output as svg, ps or pdf) they increase in size (.svg (uncompressed) doesn't get smaller than ~35KB, .pdf even increases to at least ~150KB)

Is there a way to (easily) get the output smaller without loosing information? Normally I save from .svg to .pdf or from .pdf to .pdf.
But an increase in size of 2000% (! - from 7KB to 150KB in the case of .pdf) isn't acceptable, is it?

Would be glad if there's a solution, since this issue renders Inkscape useless for me at this time.

Thanks in advance
Ede

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Inkscape produces huge output (=large file sizes)?

Postby ~suv » Tue Nov 17, 2009 4:27 pm

This bug has been recently discovered (happens only on win32 due to multiple font embedding in PS/EPS/PDF export) and has been fixed for 0.47. Unfortunately there is no good workaround in 0.47pre4 available (except converting all texts to paths before exporting to PDF, but these files aren't small either. It is fixed in SVN and will be ok in inkscape 0.47 ;-)

related:
Bug #271695 “Kerned text embeds too many fonts and blows up the file size in EPS/PS
Bug #469180 “Significant Differences in exported PDF File Size from 0.46 to 0.47pre3/4

and somewhat related but different (export option 'Convert texts to paths'):
Bug #388257 “Inkscape 0.47Pre: PDF/PS Export 'Text to Paths' gives inconsistent results”:

thread on inkscape-devel:
Subject: [win32] EPS/PS/PDF export of text objects problematic with 0.47(pre)

James

Re: Inkscape produces huge output (=large file sizes)?

Postby James » Wed Jul 07, 2010 12:26 pm

I have a similar issue in Inkscape 0.46 running under Ubuntu 9.04.

I convert an original 18.8MB BMP to vector format, and save as an SVG of 122kB. However, when I convert that SVG to EPS the output file is 31.9MB! I have the "text to path" option enabled.

Any help would be appreciated.

Thanks,
James

James

Re: Inkscape produces huge output (=large file sizes)?

Postby James » Wed Jul 07, 2010 2:29 pm

I worked out why my EPS output was 31.8MB. In the SVG file, there was an image tag that linked to the original BMP (despite ticking "Remove background" in the Trace Bitmap dialog box). By deleting this, my EPS file size is now comparable to the SVG.


Return to “Discuss Software Issues”