huge pdf file size when svg contains jpg

Post questions on how to use or achieve an effect in Inkscape.
faraz

huge pdf file size when svg contains jpg

Postby faraz » Sun Mar 14, 2010 5:25 pm

Hello,

I'm trying to create some vector graphic on top of a jpg, and then converting it to pdf (to use in latex).

When I save the file without the jpg image, the file size is about 15 KB.

The jpg size is 38 KB. it remains 38 KB when I convert it to pdf using ImageMagick convert.

When I include the jpg in the svg and then convert it to pdf, I would expect the size to be about 55 KB. However, the size becomes about 195 KB.

I guess inkscape (or maybe cairo?) some how convert the jpg to uncompressed bitmap. Is that right?

Is there anyway work around for this issue?

Thanks in advance.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: huge pdf file size when svg contains jpg

Postby druban » Tue Mar 16, 2010 6:31 am

I think that Inkscape might be rewriting the image as PNG and this might account for the slightly larger size. If you really want to know try converting the image to PNG in some other program and see if the filesize in Inkscape's SVG changes...
Your mind is what you think it is.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: huge pdf file size when svg contains jpg

Postby sas » Tue Mar 16, 2010 8:27 am

This is bug 168708.


Return to “Help with using Inkscape”