Bug 40192

Summary: CairoOutputDev should set mime data for soft masked images
Product: poppler Reporter: Adrian Johnson <ajohnson>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: add mime data to soft masked images

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.