Bug 40192 - CairoOutputDev should set mime data for soft masked images
Summary: CairoOutputDev should set mime data for soft masked images
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 01:20 UTC by Adrian Johnson
Modified: 2011-08-19 07:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
add mime data to soft masked images (843 bytes, patch)
2011-08-18 01:20 UTC, Adrian Johnson
Details | Splinter Review

Description Adrian Johnson 2011-08-18 01:20:34 UTC
Created attachment 50343 [details] [review]
add mime data to soft masked images

The cairo backend is not currently setting the mime data for soft masked images. As a result jpeg images are Flate encoded in PDF output resulting in increased file size.

The attached patch fixes this.
Comment 1 Adrian Johnson 2011-08-18 01:24:27 UTC
The PDF test case I used is:
https://bugzilla.gnome.org/attachment.cgi?id=163460
from bug https://bugzilla.gnome.org/show_bug.cgi?id=621359

This has a file size of 84K. When printed to PDF using cairo the file size is 253K. After applying this patch the file size is 45K.
Comment 2 Carlos Garcia Campos 2011-08-19 07:21:24 UTC
Pushed to git master, thank you very much


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.