Bug 92945 - FILESAVE PNG export of page with color background leaves out margins
Summary: FILESAVE PNG export of page with color background leaves out margins
Status: RESOLVED DUPLICATE of bug 89828
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.4.4.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-26 21:16 UTC by Gérald Maruccia
Modified: 2024-06-18 04:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
exported png file + draw format + file in gimp (713.46 KB, application/zip)
2015-07-26 21:16 UTC, Gérald Maruccia
Details
2 png exported from draw - one made with gimp as expected result (56.13 KB, application/zip)
2016-09-20 12:44 UTC, Gérald Maruccia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gérald Maruccia 2015-07-26 21:16:01 UTC
Created attachment 117455 [details]
exported png file + draw format + file in gimp

Hello,

Ubuntu 14.04 / LO 4.4.4.3

- create a document (page size A3) in draw
- export it to .png
- set size and resolution, no interleave, in dialog box

What I expect :

- a png file of same size and proportions,
- in that case a red rectangle with 1cm white border.
(or a red rectangle with 1cm transparent border)

What I get :

- the png export excludes the margins of the original A3 document but size remains A3 420x297mm so resolution lowered,
- in that case only a red rectangle.
Comment 1 Gérald Maruccia 2015-07-29 15:43:26 UTC
…resolution lowered,

and

proportions of the image are not kept

(as you can see on attached gimp picture, horizontal and vertical resolution are different)
Comment 2 Buovjaga 2015-08-01 14:59:19 UTC
Reproduced.

I wonder, if bug 91768 is related.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Win-x86@39, Branch:master, Time: 2015-07-30_03:52:07
Locale: en-US (fi_FI)
Comment 3 Gérald Maruccia 2015-08-01 15:39:25 UTC
Indeed bug 91768 seems very similar.

If exported without keeping transparency, from the same image, you get 1cm white border, expected size and proportion.

So there is a confusion mixing :

- actual size of "page"

- margin/border of this page

- transparency

?

Transparency or not, in my mind, the size of the image should remain the size of the "page" it's on.
Comment 4 QA Administrators 2016-09-20 10:21:53 UTC Comment hidden (obsolete)
Comment 5 Gérald Maruccia 2016-09-20 12:44:11 UTC
Created attachment 127466 [details]
2 png exported from draw - one made with gimp as expected result
Comment 6 Gérald Maruccia 2016-09-20 12:45:13 UTC
Problem is still present in
Version: 5.1.5.2
Build ID: 1:5.1.5~rc2-0ubuntu1~trusty1

Attached are 3 png files in test_3_png_files.zip

Settings of the page are :
A4 size,
top and bottom margins 4cm
left and right margins 2cm

test_01 no transparency → ok
test_02 with transparency → not ok, stretched, wrong proportions
test_03 is what I expected, made with gimp from test_01.
Comment 7 QA Administrators 2018-06-24 02:41:04 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2020-06-24 03:41:36 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2022-06-25 03:38:38 UTC Comment hidden (obsolete)
Comment 10 Stéphane Guillou (stragu) 2024-06-18 04:42:24 UTC
This issue of margins left out in transparency exports is tracked in bug 89828.

*** This bug has been marked as a duplicate of bug 89828 ***