Embedded jpg exported to EPS/PDF as non-jpeg (JPEGs are stored /FlateDecode instead of /DCTDecode)
Bug #168708 reported by
Norbert Nemec
This bug affects 23 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Krzysztof Kosinski | ||
inkscape (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Embedding jpg images in a svg file works beautifully. Exporting the same to
an eps or a pdf is a pain. The image is actually converted to a lossless
tiff image, blowing up the file size immensly. The only thing to reduce the
file size lateron is to go via pdf2ps and ps2pdf, which encodes all the
internal raster images as jpg. This doubles the amount of jpg-artefacts and
I loose every control over which raster images should be compressed in
which way.
Postscript level 2 does allow embedding JPG (see
http://
Changed in inkscape: | |
importance: | Undecided → Medium |
Changed in inkscape (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
summary: |
- embedded jpg exported to eps&pdf as non-jpg + Embedded jpg exported to EPS/PDF as non-jpeg (JPEGs are stored + /FlateDecode instead of /DCTDecode) |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Changed in inkscape (Ubuntu): | |
status: | Triaged → Fix Released |
To post a comment you must log in.
In fact, this is *not* a duplicate of bug #168434: The other bug report is about lossless raster images stored in PDF files without compression. That issue was fairly easy to fix and has been fixed by switching to Cairo PDF export.
This bug, however is about embedded *JPG* raster images. As of now, Inkscape decompresses these images and saves embeds them in a lossless format.
AFAIK, Cairo does not yet offer any mechanism to handle raw JPG data and avoid recompression with loss of quality. (see long thread starting with http:// lists.freedeskt op.org/ archives/ cairo/2007- January/ 009096. html) That means, Inkscape cannot really solve this issue either. Therefore, this bug should be considered "on hold" until Cairo has resolved the issue on their side.
Proposed "solutions" like offering an option for the compression level in jpg images embedded in exported PDF are not satisfactory as they still do not avoid the unnecessary recompression.