Bug 137098 - viewBox in svg export too big
Summary: viewBox in svg export too big
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: filter:svg
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
Reported: 2020-09-28 14:44 UTC by Alex
Modified: 2020-10-12 08:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Huge ViewBox in Calc Chart SVG export (63.46 KB, image/svg+xml)
2020-09-30 14:02 UTC, Alex
Normal viewBox generated by SciDevis (65.08 KB, image/svg+xml)
2020-09-30 15:58 UTC, Alex

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2020-09-28 14:44:28 UTC
When exporting charts to SVG viewBox parameters are huge. Thus when you generate PNG from this SVG the PNG is two orders of magnitude bigger then needed.

Steps to Reproduce:
1. Plot chart
2. Export chart to SVG
3. Open SVG in text editor

Actual Results:
viewBox="0 0 47300 24900"

Expected Results:
viewBox="0 0 473 249"

Reproducible: Always

User Profile Reset: No

OpenGL enabled: Yes

Additional Info:
Ubuntu 20.04
Comment 1 Roman Kuznetsov 2020-09-28 20:04:07 UTC
Alex, please attach a file example and write here info from Help-About dialog
Comment 2 Alex 2020-09-30 14:02:10 UTC
Created attachment 165979 [details]
Huge ViewBox in Calc Chart SVG export
Comment 3 Alex 2020-09-30 14:02:53 UTC
Build ID: 1:6.4.6-0ubuntu0.20.04.1
CPU threads: 16; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: CL
Comment 4 Alex 2020-09-30 15:58:09 UTC
Created attachment 165984 [details]
Normal viewBox generated by SciDevis

For comparison. SVG generated by SciDevis. viewBox="0 0 1801 901"
Comment 5 Aron Budea 2020-10-11 13:52:24 UTC
Alex, why did you close the bug report in the end?
Comment 6 Alex 2020-10-12 08:21:37 UTC
It was not the problem of Libreoffice. Yes the viewbox was too high dps. But problem was in the other application. Specifically wrong (unsupported) keys in mediawiki default installation.