Bug 113875

Summary: 1bpp grey-level PNG images are mis-exported to PDF (as black&white)
Product: LibreOffice Reporter: How can I remove my account? <tml>
Component: Printing and PDF exportAssignee: How can I remove my account? <tml>
Status: RESOLVED FIXED    
Severity: normal CC: thb, xiscofauli
Priority: medium    
Version: 6.0.0.0.alpha1+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=103833
https://bugs.documentfoundation.org/show_bug.cgi?id=113814
https://bugs.documentfoundation.org/show_bug.cgi?id=115393
https://bugs.documentfoundation.org/show_bug.cgi?id=115297
Whiteboard: target:6.0.0 target:5.4.4
Crash report or crash signature: Regression By:
Attachments: Sample document
As exported to PDF by current master

Description How can I remove my account? 2017-11-16 10:17:20 UTC
Description:
When a document uses a one bit per pixel grey-level PNG image (typically a watermark with light grey text on white background) as a page background, it is exported as a black-and-white image in PDF.

Steps to Reproduce:
See attached samples.

Actual Results:  
.

Expected Results:
.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5
Comment 1 How can I remove my account? 2017-11-16 10:18:42 UTC
(Currently in master, the background image shows up in Writer as black&white, too, but that is a separate bug.)
Comment 2 How can I remove my account? 2017-11-16 10:21:18 UTC
Created attachment 137803 [details]
Sample document
Comment 3 How can I remove my account? 2017-11-16 10:22:47 UTC
Created attachment 137804 [details]
As exported to PDF by current master
Comment 4 Commit Notification 2017-11-16 10:54:36 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=ab99d4611cde968d02b97af63b74b80a427399a9

tdf#113875: Properly export 1bpp greylevel (but not B&W) PNG images to PDF

It will be available in 6.0.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2017-11-27 14:29:22 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "libreoffice-5-4":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=f42d1a7788dc8f6e80c9c0a8e7ac8b04001dc941&h=libreoffice-5-4

tdf#113875: Properly export 1bpp greylevel (but not B&W) PNG images to PDF

It will be available in 5.4.4.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.