Issue 125775

Summary: Shapes exported in PNG and GIF are slightly cropped
Product: Draw Reporter: raph85
Component: save-exportAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: astepukonis, oooforum, rj.amdphreak
Version: 4.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

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.

Steps:
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. ***