Issue 125775 - Shapes exported in PNG and GIF are slightly cropped
Summary: Shapes exported in PNG and GIF are slightly cropped
Alias: None
Product: Draw
Classification: Application
Component: save-export (show other issues)
Version: 4.1.1
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 128022 (view as issue list)
Depends on:
Reported: 2014-10-20 21:06 UTC by raph85
Modified: 2019-01-29 11:04 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description raph85 2014-10-20 21:06:06 UTC
When exporting a shape in PNG or GIF (possibly others), the bottom and right borders disappear.

1. Create a rectangle in a new Draw document
2. Select the shape
3. Click on File>Export, select the "GIF" or "PNG" format, click on the "selection" option, and export

The resulting picture is missing a line of pixel on the right and bottom sides.

The same problem also occurs when simply copying that shape and "special pasting" it as Bitmap somewhere else, but that may be unrelated.

Tested with:
- OpenOffice 4.1.1 (AOO411m6) on Windows 7 Enterprise 64.
- OpenOffice 4.1.0 (AOO410m18) on Linux 64
Comment 1 oooforum (fr) 2014-10-21 09:55:10 UTC
Confirmed with following steps:
1. Drawing a rectangle 
2. Set its dimensions with width = 8 cm and height = 3 cm
3. File > Export in PNG with "selection" checked
4. In the next dialog "PNG Options", we have wrong values:
width = 7.99 cm and height = 2.99 cm

Maybe a dup of issue 124609
Comment 2 Aivaras Stepukonis 2016-01-27 22:07:17 UTC
Just ran into this issue. We need a fix here.
Comment 3 oooforum (fr) 2019-01-29 11:04:48 UTC
*** Issue 128022 has been marked as a duplicate of this issue. ***