Bug 133923 - File-Export to image only exports text and not chart
Summary: File-Export to image only exports text and not chart
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Export
  Show dependency treegraph
 
Reported: 2020-06-12 10:26 UTC by Timur
Modified: 2021-04-09 11:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Export as picture Selected Chart - Callout - Text - (20.59 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-06-16 14:36 UTC, regis586
Details
Chart-Callout-Text Paste in new Writer document (53.91 KB, application/vnd.oasis.opendocument.text)
2020-06-16 14:40 UTC, regis586
Details
Chart selected -> Export as Picture (*.png) -> Ok (42.53 KB, image/png)
2020-06-17 10:17 UTC, regis586
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2020-06-12 10:26:16 UTC
1. Open ODS attachment 131664 [details] with text and chart. 
2. File-Export as JPG or PNG or PDF
3. Select chart and File-Export as JPG or PNG or PDF without and with ticked "Selection"

See that only text exports to JPG or PNG, Chart doesn't export without "Selection". With "Selection" chart is exported but no text then.
See that only text exports to PDF, but only Chart is exported if selected, regardless if "Selection" ticked and no text then. 

Note: 
1. Chart can be image exported to JPG or PNG via right-click Export image (which is correct and similar to File-Export with "Selection")
2. Chart image exported to PDF via right-click Export image is bug 111392

Hard to say what was intended with Export. Help is of no use: https://help.libreoffice.org/7.1/bs/text/simpress/01/01170000.html 

Seems logical that File-Export should export all if "Selection" is not ticked and export selection only if "Selection" is ticked.
Comment 1 Timur 2020-06-12 10:57:50 UTC
Seems that behavior with export is not limited to chart, but it's for any object.
Example is ODS attachment 161870 [details] from bug 133827 with chart and callouts.

Nothing is exported to JPG and PNG with File-Export without "Selection" ticked and export to PDF is wrong.
With callout selected and "Selection" ticked, it's exported to JPG and PNG without background (OK), and exported to PDF with chart background (NOK). 

File-Export image to PDF can be another bug, but let it all here so far.
Comment 2 Roman Kuznetsov 2020-06-12 16:15:08 UTC
I don't think it's a bug. It works that by design.

When you select cells then you'll export cells, when you select an object - you'll export that object

Problem here is you can't select cells with objects in one time. And it's another problem.
Comment 3 Timur 2020-06-12 18:48:44 UTC
I don't think so. It doesn't export selected cell, but all cells. And that's why we have "Selection".
Comment 4 Heiko Tietze 2020-06-14 11:14:45 UTC
If you select cells and chart (actually surrounding cells) everything is exported. Tend to agree with Timur.
Comment 5 Timur 2020-06-15 18:52:37 UTC
I'll take that as New with updated steps:

1. Open ODS attachment 131664 [details] with text and chart. 
2a. Try without any select
2b. Try with selected cells and chart A1:O30
2c. Tray with just chart selected 
3. For all cases, File-Export as JPG or PNG or PDF without and with ticked "Selection"

I didn't figure this out, that you could export all with selection and "Selection". Bug remains.
Comment 6 regis586 2020-06-16 14:36:39 UTC
Created attachment 162060 [details]
Export as picture Selected Chart - Callout - Text -

Hi,

The only way , I found to have, approximately, the same result (Chart, Callouts & Texts inside..) in a single 'xxx.png' picture as this one
https://bugs.documentfoundation.org/attachment.cgi?id=161908

1. With your test file (FormatBG.ods)
2. Insert -> Callout -> Writing inside -> Drag and Drop inside Chart.
3. Left-Click Callout -> Selected.
4. "Shift + Left-Click" around Callout in Chart -> all selected.
5. Right-Click -> Context Menu -> Group.
6. Left-Click in a cell (out of the Chart).
7. Left-Click in the Chart -> Right-Click -> Copy.
Comment 7 regis586 2020-06-16 14:40:49 UTC
Created attachment 162061 [details]
Chart-Callout-Text Paste in new Writer document

8. Open a new document (Writer)
9. Paste.
Comment 8 regis586 2020-06-17 10:17:34 UTC
Created attachment 162108 [details]
Chart selected -> Export as Picture (*.png) -> Ok

1. Install old LO version 6.3.3.2 (12/11/2019)

2. Open file ->  "20200617-Bug-Callout-Texte-Picture-LO-6.3.3.2.ods"
http://bugs.documentfoundation.org/attachment.cgi?id=162101

3. Write in (old)Callouts -> "Old Callout -> Text 17-06-20"
4. Left-Click on Chart -> Chart selected -> Right-Click -> Context Menu-> Export as Picture (*.png) 
5. Open *.png -> Ok

4. Insert -> Callout -> Write inside: "New Callout & Text → 17-06-20"
6. Drag & Drop on Chart
7. Left-click out Chart -> Context Menu (associate, or group, or else...)
8. Can move the chart with new & old Callouts & texts.
9. But when doing same as(4.)-> Not Ok (only old Callouts & Texts appear...
Comment 9 Heiko Tietze 2021-04-08 13:48:46 UTC
Please don't forget add the keyword needsUXEval when CC'ing libreoffice-ux-advise.
Comment 10 Heiko Tietze 2021-04-09 11:23:45 UTC
Had a look again and it appears that we got fooled by the print range. The chart is just on the second page. => NAB

(In reply to Heiko Tietze from comment #9)
> Please don't forget...

Seems UX keyword was intentionally removed but CC not.