Bug 134544 - FILESAVE LO Draw export to PNG does not export borders around objects correctly.
Summary: FILESAVE LO Draw export to PNG does not export borders around objects correctly.
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-06 05:54 UTC by Bart Besseling
Modified: 2023-01-28 22:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Exported PNG (5.90 KB, image/png)
2020-07-06 05:54 UTC, Bart Besseling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Besseling 2020-07-06 05:54:54 UTC
Created attachment 162682 [details]
Exported PNG

LibreOffice Draw exports a selection with a heavy border without the entire border to a PNG, and inflates the object slightly.
Steps to Reproduce:
I install a new instance of LibreOffice version 6.4.5.2 for 64-bit Windows 10 from the web site.
I create a new document using LibreOffice Draw.
I create a graphic, e.g. a rounded rectangle, of 3.24" by 2" against the top and left margins.
I fill the rounded rectangle with no color but give it at 6 pixel line width border.
I select the rounded rectangle.
I select File->Export and save only the selection as PNG type.
On the LibreOffice Draw screen it appears that the border is centered on the size of the object, i.e. 3 points inside and 3 points outside on all sides.
We therefore expect the image size to be 311+3+3=317 by 192+3+3=198 pixels, which at 96ppi would be 3.3025" by 2.0625".
The export dialog says it will export 3.32" by 2.08" which at 96ppi would be 319 by 200 pixels.
The image is actually 319 by 200 pixels and the rounded rectangle has a 4-pixel total top and left border and a 3 pixel right and bottom border (not equal on each side).
The transparent inside of the rounded rectangle should have been 311-3-3=305 by 192-3-3=186 pixels, but is 311 by 192 pixels!
Draw exports a selection with a heavy border without the entire border to a PNG, and inflates the object slightly.
Comment 1 Telesto 2020-07-06 15:34:03 UTC
Maybe bug 132590
Comment 2 Xisco Faulí 2020-08-11 10:35:43 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 QA Administrators 2021-02-08 03:48:29 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2021-03-11 04:48:54 UTC
Dear Bart Besseling,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp