Bug 136158 - Dev Alpha 7.1: PNG export in LO Draw of a picture results in a blank image the size of the picture
Summary: Dev Alpha 7.1: PNG export in LO Draw of a picture results in a blank image th...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2020-08-26 19:29 UTC by xordevoreaux
Modified: 2020-09-11 13:02 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
requested picture (438.95 KB, image/jpeg)
2020-08-27 12:21 UTC, xordevoreaux
Details
Example file (213.16 KB, application/vnd.oasis.opendocument.graphics)
2020-08-27 12:22 UTC, Telesto
Details
testing document (464.21 KB, application/vnd.oasis.opendocument.graphics)
2020-08-27 12:22 UTC, xordevoreaux
Details
output (7.87 KB, image/png)
2020-08-27 12:25 UTC, xordevoreaux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xordevoreaux 2020-08-26 19:29:45 UTC
Description:
Exporting a PNG of an imported picture results in a blank image the size of the imported picture, even when the entire slide is exported.

As usual, TIF format is unaffected and exported normally.

Steps to Reproduce:
1. Launch LO Draw
2. Import any photograph/picture onto a slide
3. Export the slide as PNG

Actual Results:
A blank PNG the size of the imported picture.

Expected Results:
The PNG should contained the imported picture


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 6640d7f405d2970ba2825a9455926cc803284d01
CPU threads: 8; OS: Windows 10.0 Build 20197; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 Telesto 2020-08-26 21:46:38 UTC
Interesting.. I have a different - undesired - result. If I export a page with image to PNG, the background is transparent (expected white, as before)

However I do see a picture

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 8700bace8c0714d853f5df6918ab9c8bb3d81f77
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL


FWIW, do you produce the same results with Software mode (Skia Raster)and without SKIA too?
Comment 2 xordevoreaux 2020-08-26 22:44:14 UTC
I'm using:
anti-aliasing
Skia for all rendering

Force skia software rendering is not checked.
Comment 3 xordevoreaux 2020-08-26 22:45:47 UTC
I see that your version of the daily build is different than mine. I pulled down the daily build dated today 8/26 to test with.
Comment 4 xordevoreaux 2020-08-26 22:50:36 UTC
(In reply to Telesto from comment #1)
> Interesting.. I have a different - undesired - result. If I export a page
> with image to PNG, the background is transparent (expected white, as before)
> 
> However I do see a picture
> 
> Version: 7.1.0.0.alpha0+ (x64)
> Build ID: 8700bace8c0714d853f5df6918ab9c8bb3d81f77
> CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
> Locale: nl-NL (nl_NL); UI: en-US
> Calc: CL
> 
> 
> FWIW, do you produce the same results with Software mode (Skia Raster)and
> without SKIA too?

I get a picture (with transparent background for the entire slide) using:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 6640d7f405d2970ba2825a9455926cc803284d01
CPU threads: 8; OS: Windows 10.0 Build 20197; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

with hardware rendering.
Note, however, that the background defaults to None, so no background would make sense, and is ABSOLUTELY desirable.

When I set the background to color, white, I get a white background, which also makes sense.
Comment 5 xordevoreaux 2020-08-26 22:52:51 UTC
Reverting away from hardware rendering back to Skia gives me a solid blank white page with no picture when I have a white color background.

I like how the background is working, but it'd be nice to have the picture show up, too.
Comment 6 Regina Henschel 2020-08-27 12:16:57 UTC
What kind of image is it? If possible, please attach it.
Comment 7 Telesto 2020-08-27 12:19:11 UTC
(In reply to Regina Henschel from comment #6)
> What kind of image is it? If possible, please attach it.

I assume this being related to bug 136171. So any image (not tested, yet)
Comment 8 xordevoreaux 2020-08-27 12:21:49 UTC
Created attachment 164744 [details]
requested picture

The picture is a .JPG.  Attached.
Comment 9 Telesto 2020-08-27 12:22:18 UTC
Created attachment 164745 [details]
Example file
Comment 10 xordevoreaux 2020-08-27 12:22:43 UTC
Created attachment 164746 [details]
testing document

My LO Draw file I tested with.
Comment 11 Telesto 2020-08-27 12:23:20 UTC
Confirm
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 6640d7f405d2970ba2825a9455926cc803284d01
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 12 xordevoreaux 2020-08-27 12:25:37 UTC
Created attachment 164747 [details]
output

This is the output with Skia. 

As an aside, I set the background to white. Not setting any background (None is the default) results in no background at all, which as far as I'm concerned is perfect in terms of how it behaves. No problem there.
Comment 13 xordevoreaux 2020-09-11 13:02:17 UTC
There remain other problems with the PNG output, but at least I'm getting a picture now in:

Version: 7.1.0.0.alpha0+ (x64)
Build ID: ed4f610f4a3de12016f8308a17b6ad4f86e9d67a
CPU threads: 8; OS: Windows 10.0 Build 20211; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

Both SKIA and hardware rendering.