Bug 115393

Summary: 1bpp B&W PNG images are mis-exported to PDF (as black boxes)
Product: LibreOffice Reporter: Michał Kępień <libreoffice>
Component: Printing and PDF exportAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xiscofauli
Priority: medium    
Version: 5.4.4.2 release   
Hardware: All   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=113875
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Example problematic image
Writer document with the example problematic image inserted
Writer document exported to PDF using LibreOffice 5.4.3.2 (good)
Writer document exported to PDF using LibreOffice 5.4.4.2 (bad)

Description Michał Kępień 2018-02-02 09:08:31 UTC
Description:
When exported to PDF, 1bpp B&W PNG images are turned into boxes filled
with black.


Steps to Reproduce:
1. Insert a 1bpp B&W PNG image into a Writer document.
2. Export the document to PDF.
3. View the resulting PDF in any PDF viewer.


Actual Results:  
In the exported PDF, the inserted image is displayed as a black box.

Expected Results:
In the exported PDF, the inserted image should retain its original
contents.



Reproducible: Always


User Profile Reset: Yes



Additional Info:
I believe this issue was introduced by the fix for Bug #113875.
Exporting 1bpp B&W PNG images to PDF worked fine in version 5.4.3.2.

Converting the inserted PNG image to RGB mode using GIMP works around
the problem.



User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 Michał Kępień 2018-02-02 09:17:24 UTC
Created attachment 139518 [details]
Example problematic image
Comment 2 Michał Kępień 2018-02-02 09:18:56 UTC
Created attachment 139519 [details]
Writer document with the example problematic image inserted
Comment 3 Michał Kępień 2018-02-02 09:19:53 UTC
Created attachment 139520 [details]
Writer document exported to PDF using LibreOffice 5.4.3.2 (good)
Comment 4 Michał Kępień 2018-02-02 09:20:17 UTC
Created attachment 139522 [details]
Writer document exported to PDF using LibreOffice 5.4.4.2 (bad)
Comment 5 Xisco Faulí 2018-02-02 09:42:17 UTC
Hi,
Thanks for reporting this issue.
It seems like a dupe of bug 115297

*** This bug has been marked as a duplicate of bug 115297 ***