How do I export only the selected shaped as png without exporting the entire page?

I’m trying to make a texture atlas for a hobby programming project in Draw.
I’m new to LibreOffice, so I made a few simple hexagons as a test run and tried to export all of them as a PNG.


However, the exported PNG had the hexagons in the corner and a lot of empty space in the middle.
Imgur: The magic of the Internet (Sorry, new accounts can’t have multiple image embeds so I have to improvise)
I’m pretty sure this is because Draw is exporting the whole page instead of just the hexagons, and the hexagons’ position in the PNG is their position in the page (i.e. the top left corner).
The problem with this is that a texture atlas, as far as I know, doesn’t work if the position of the textures are not perfectly aligned with the edges of the picture. So what I need is something more like this
Imgur: The magic of the Internet
See how it’s just the hexagons and nothing else? (I just made this picture here with a bit of photo editing, so it’s good enough to trick human eyes into thinking its good but it unfortunately doesn’t work if I use it in the project :frowning: )
How do I get Draw to export just the hexagons without any extra space on the edges?

IMHO Draw is not the ideal tool for such a task. Consider a more specialised application like GIMP.

1 Like

I was looking for some free image editing software, this looks cool so I’ll check it out. Thanks :slight_smile:

In the File - Export dialog, notice the checkmark “Selection” in the lower left corner. Check that to only export the selected graphics instead of an image of the entire page.

3 Likes

Oh! I didn’t notice that checkbox before, thank you very much!
For anyone who stumbles across this thread in the future, here it is :slight_smile: