Bug 159048 - Right-click - Export as Image for charts should support selecting the size/dpi
Summary: Right-click - Export as Image for charts should support selecting the size/dpi
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2024-01-06 16:59 UTC by amanita+LIBREOFFICE
Modified: 2024-07-20 11:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
example diagram with PNG and SVG export images (276 bytes, text/plain)
2024-07-17 12:35 UTC, amanita+LIBREOFFICE
Details
another try (31.78 KB, application/x-7z-compressed)
2024-07-17 12:35 UTC, amanita+LIBREOFFICE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amanita+LIBREOFFICE 2024-01-06 16:59:51 UTC
Description:
When exporting a Graph as PNG there are no size options and its horribly pixelated.

But when choosing SVG nearly everything is correct, but the X labels are too high and too far to the left.

I dont want to provide the example graph but everything is correct, the x axis labels are above the graph and outside the area to the left.

Steps to Reproduce:
1. create a line graph with x and y axis labels
2. export as svg

Actual Results:
everything is correct (title, subtitle, legend, lines, axes, y label and numbers)

but the x numbers and y label are outside of the area and wrongly positioned

Expected Results:
normal


Reproducible: Always


User Profile Reset: No

Additional Info:
fedora KDE 39
Flatpak version from Flathub
Comment 1 raal 2024-01-06 18:33:16 UTC
Please attach test file, thank you.
Comment 2 QA Administrators 2024-07-17 03:14:52 UTC Comment hidden (obsolete)
Comment 3 amanita+LIBREOFFICE 2024-07-17 12:35:11 UTC
Created attachment 195351 [details]
example diagram with PNG and SVG export images
Comment 4 amanita+LIBREOFFICE 2024-07-17 12:35:55 UTC
Created attachment 195352 [details]
another try
Comment 5 Buovjaga 2024-07-18 14:28:46 UTC
(In reply to amanita+LIBREOFFICE from comment #4)
> Created attachment 195352 [details]
> another try

The SVG you attached looks perfect in Inkscape, Firefox and LibreOffice. Same when I export the chart as SVG myself (via right-click - Export as Image).

What are you using to view the SVG, if it's showing as messed up?
Comment 6 amanita+LIBREOFFICE 2024-07-19 15:26:14 UTC
oh yes very true! This is likely a qtsvg but then, as I used Gwenview to view it.

Then this issue can be narrowed down to a feature request to allow choosing the size of the exported PNG and JPG.

A workaround is to export the SVG and use Inkscape to export to the correct size. Not a very nice one, but possible.
Comment 7 Buovjaga 2024-07-19 15:53:17 UTC
(In reply to amanita+LIBREOFFICE from comment #6)
> oh yes very true! This is likely a qtsvg but then, as I used Gwenview to
> view it.
> 
> Then this issue can be narrowed down to a feature request to allow choosing
> the size of the exported PNG and JPG.
> 
> A workaround is to export the SVG and use Inkscape to export to the correct
> size. Not a very nice one, but possible.

A quicker workaround is to select the chart, File - Export, check Selection checkbox in the file dialog and then you get the usual settings dialog while only exporting the chart.