I use Draw very frequently to make diagrams and flowcharts. However, when I try to export the selection as PNG or JPG, it always crops the last few pixels at the right and bottom of the image. Attached to this bug report: 1) ODG file with the original drawing 2) PNG file with the exported result (using "Selection" while exporting) One interesting thing is that even if I draw a transparent rectangle around the image and select it while exporting, LO Draw simply ignores the rectangle. I thought that this would be a workaround to make LO Draw export the whole image. I am using LibreOffice 7.0.1.2 on Linux, but this bug is present since at least LO 6.3, which is when I started noticing it.
Created attachment 165293 [details] ODG file with the drawing
Created attachment 165294 [details] PNG file generated while exporting selection
Created attachment 168956 [details] ODG file with thick border rectangle
Created attachment 168957 [details] PNG export of thick border rectangles
It's easy to run into this bug if you make drawings to go in web pages, and I can help narrow the version for it. I see this bug on 7.1 rc1, and I see it in 6.4, but I do not see it in 5.4. The exported PNG is a little too small at its edges, so the exported shapes are clipped inward, looking asymmetric and wrong. The bug is most pronounced if the shape borders are thick, so I added sample files showing that.
I have just tested the files provided by Nick on LO 7.0.3 and the issue persists. I also tried grouping the objects before exporting them, but the results were the same. Version: 7.0.3.1 Build ID: 00(Build:1) CPU threads: 16; OS: Linux 5.8; UI render: default; VCL: kf5 Locale: pt-BR (pt_BR.UTF-8); UI: en-US Ubuntu package version: 1:7.0.3-0ubuntu0.20.10.1 Calc: threaded
This bug is still a problem for me. As a workaround, maybe of interest to the OP .. export selection as SVG does not appear to have this problem. The browsers can render SVG natively, so it really works even a little better than PNG. I'd prefer to stay in LibreOffice, but Inkscape has the ability to save/edit SVGs itself, so that's a possible workflow for creating and editing art files directly without an export step.
Created attachment 173300 [details] ODG file with simple circle
Created attachment 173301 [details] JPG file with cropped circle when exporting as selection
Still in 7.1.4.
repro in Version: 7.1.5.2 (x64) / LibreOffice Community Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5 CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: en-US (ru_RU); UI: en-US Calc: threaded
repro in Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5 CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: en-US (ru_RU); UI: en-US Calc: threaded
I didn't test but per description seems to be the duplicate of bug 132590. *** This bug has been marked as a duplicate of bug 132590 ***
Note another bug 126319.
(In reply to Timur from comment #13) > I didn't test but per description seems to be the duplicate of bug 132590. > > *** This bug has been marked as a duplicate of bug 132590 *** I checked bug 132590 and indeed it is a dup.
*** This bug has been marked as a duplicate of bug 126319 ***