Bug 136165 - Export transparent background optionally (otherwise use canvas background)
Summary: Export transparent background optionally (otherwise use canvas background)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Draw-File-Handling
  Show dependency treegraph
 
Reported: 2020-08-27 06:57 UTC by Telesto
Modified: 2024-01-22 13:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-08-27 06:57:53 UTC
Description:
Transparent background when exporting a page with image to PNG

Steps to Reproduce:
1. Open Draw
2. Insert a picture
3. File -> Export PNG (probably also with Impress, which might be problematic sheet)

Compare with GDI mode

Actual Results:
Transparent background on Windows, not sure for the other backends. This is a change in behaviour 

Expected Results:
The hard part. For draw this is technically correct. No background. 
A) It's confusing from what you see is what you get. 
B) There is no indicator if background being transparent or white. Most editor have a different canvas for transparent




Reproducible: Always


User Profile Reset: No



Additional Info:
Somewhere in
7.1
Comment 1 xordevoreaux 2020-09-11 12:17:12 UTC
I agree, it is confusing. You have a (visually) white background whether the page background is transparent or white. Many programs like Paint.net, Krita, and others use a checkered white-and-gray pattern to represent transparency.

It is ABSOLUTELY desirable to have an exported image from Draw to have a transparent background if the background is set to None.
Comment 2 csongor 2020-09-16 12:13:30 UTC
I agree, the export dialog, where you can tell Size, Compression, Mode, etc., it should have a checkbox:
[_] Save Background as visible (rather than transparent)

By default, it should be unchecked (save as transparent).
Comment 3 Heiko Tietze 2020-09-17 08:21:34 UTC
We discussed the topic in the design meeting. Here are the minutes:

   + reason for the confusion is likely the fact that background color
     is saved when the full document is exported
   + don't see Draw as equivalent to Inkscape or the like, 
     -1 for the checkerboard background (Heiko)
     + also it's not clear how to implement without affecting the document
   + but we already have provided checkerboard for the SB Gallery
     + would be nice to have (Stuart)
   + Export option "[ ] Save Background as visible" (Csongor, Stuart)
     + rather have a new section *Background* with "[x] Save Transparency"

Let's implement this.
Comment 4 xordevoreaux 2024-01-22 13:35:27 UTC
Still an issue in

Version: 24.2.0.2 (X86_64) / LibreOffice Community
Build ID: b1fd3a6f0759c6f806568e15c957f97194bbec8f
CPU threads: 24; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded