[Libreoffice-bugs] [Bug 134544] New: FILESAVE LO Draw export to PNG does not export borders around objects correctly.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 6 05:54:54 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=134544

            Bug ID: 134544
           Summary: FILESAVE LO Draw export to PNG does not export borders
                    around objects correctly.
           Product: LibreOffice
           Version: 6.4.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: bbesseling at quarium.com

Created attachment 162682
  --> https://bugs.documentfoundation.org/attachment.cgi?id=162682&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200706/0c7e9bd3/attachment.htm>


More information about the Libreoffice-bugs mailing list