Bug 131626 - PNG/image export on Calc is adding blank space around instead of pixel resizing when increasing pixels and size
Summary: PNG/image export on Calc is adding blank space around instead of pixel resizi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2020-03-27 14:34 UTC by William Gathoye
Modified: 2020-08-16 19:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Huge document in pixel is taking only a portion of it (21.22 KB, image/png)
2020-03-27 14:35 UTC, William Gathoye
Details
Same picture seen entirely (160.85 KB, image/png)
2020-03-27 14:36 UTC, William Gathoye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Gathoye 2020-03-27 14:34:30 UTC
Description:
Write down some data in a spreadsheet on calc.

Go in Export... > .png.

When increasing the number of pixels, the size of the document is reduced, and the png we obtain are of the same pixels.

1123x794 pixels in A4
1588x1123 in A3

If we try to increase the size in cm as we increase the number of ppp, there is a blank space added.

Steps to Reproduce:
1. Go in Export...
2. Choose an image format
3. Increase ppp
4. Increase document size in cm

Actual Results:
Blank is added around

Expected Results:
The document is taking the size of page size we defined.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
https://twitter.com/lafibreinfo/status/1243270027844956161
Comment 1 William Gathoye 2020-03-27 14:35:14 UTC
Created attachment 159071 [details]
Huge document in pixel is taking only a portion of it
Comment 2 William Gathoye 2020-03-27 14:36:06 UTC
Created attachment 159072 [details]
Same picture seen entirely
Comment 3 Regina Henschel 2020-03-28 12:29:45 UTC
I can confirm the wrong scaling. A higher dpi-setting on same width/height adds whitespace.

I see the error in Version: 7.0.0.0.alpha0+ (x64)
Build ID: 6388c578c672690fff662cb04b6a0436cd742f37
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded

and in Version: 6.1.4.2 (x64)
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 8; OS: Windows 10.0; UI render: default; 
Locale: de-DE (en_US); Calc: CL

and in Version: 5.4.7.2 (x64)
Build ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU threads: 8; OS: Windows 6.19; UI render: default; 
Locale: de-DE (en_US); Calc: CL

Version 4.0.1.2 (Build ID: 84102822e3d61eb989ddd325abf1ac077904985) does not have this feature. So likely no regression but implementation error.
Comment 4 Vivien GUEANT 2020-03-30 11:42:40 UTC
If you specify a PNG export size larger than that proposed, white is added. The teableau is not bigger.
If you specify a smaller PNG export size, the whole table does not appear.

=> https://twitter.com/lafibreinfo/status/1243270027844956161