Bug 96196 - Exporting a chart in PNG does not preserve transparency or absence of area fill
Summary: Exporting a chart in PNG does not preserve transparency or absence of area fill
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
4.4.6.3 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2015-12-02 04:42 UTC by Stéphane Guillou (stragu)
Modified: 2019-07-11 13:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
file to test bug (19.62 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-12-02 04:42 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2015-12-02 04:42:42 UTC
Created attachment 120944 [details]
file to test bug

When exporting a chart that has no background area fill or some transparency as PNG, the resulting file does not have (100% or partial) transparency conserved, but rather a fixed colour that is the result of the addition of the (more or less) transparent + a white background.

Steps to reproduce:
- create a chart with some random data
- select background of chart, right click, "format chat area"
- either remove the colour in "Area" or set a transparency level in "Transparency"
- right click on the whole chart, "export as image...", choose PNG format, give a name, save

Expected result:
- Transparency or absence of background is conserved

Actual result:
- If colour was removed, the result is a white background
- If transparency was set on a colour, result is the addition of the partial transparency on a white background

Attached spreadsheet allows to test exporting the charts straight away.
Comment 1 Buovjaga 2015-12-04 19:42:37 UTC
Reproduced. Could not find a dupe.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: 81fa5340191baf8687f9c82f1f414f5afc86b529
Threads 4; Ver: Windows 6.1; Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-12-03_21:19:19
Locale: fi-FI (fi_FI)
Comment 2 QA Administrators 2017-01-03 19:39:46 UTC Comment hidden (obsolete)
Comment 3 Stéphane Guillou (stragu) 2017-01-04 08:06:56 UTC
Reproduced with sample document, on KXStudio 14.04, with LO as follows:

Version: 5.2.3.2
Build ID: 1:5.2.3~rc2-0ubuntu1~trusty1
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 4 Stéphane Guillou (stragu) 2017-08-18 22:58:42 UTC
Reproduced on current still version:

Version: 5.3.5.2
Build ID: 50d9bf2b0a79cdb85a3814b592608037a682059d
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 5 QA Administrators 2018-08-19 02:37:08 UTC Comment hidden (obsolete)
Comment 6 Stéphane Guillou (stragu) 2018-08-20 03:04:56 UTC
Could reproduce on an Ubuntu Budgie 18.04 install, with the following LibreOffice version:

Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_GB.UTF-8); Calc: group
Comment 7 Stéphane Guillou (stragu) 2019-07-11 13:01:37 UTC
Good news, looks like it's fixed - at least with the following:

Version: 6.3.0.1
Build ID: 41ac97386aba908b6db860cfb4cfe2da871886ae
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded