[Issue] [Solved] Exporting to PNG cuts off edges of drawing

Discuss the drawing application
Post Reply
SketchMan3
Posts: 4
Joined: Mon Feb 04, 2019 7:53 pm

[Issue] [Solved] Exporting to PNG cuts off edges of drawing

Post by SketchMan3 »

I have a drawing that has graphics up to the edge of the default margin. Exporting to PNG cuts a little bit off the sides and bottom. Exporting to BMP, however, preserves the integrity of the full page.

Is there any way to export so that this doesn't happen?

Edit: Thanks everyone for such timely support!
Last edited by robleyd on Wed Feb 06, 2019 11:08 am, edited 3 times in total.
Reason: Tagged as Issue
Apache OpenOffice 4.1.5 on Windows 7
User avatar
Zizi64
Volunteer
Posts: 11353
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Exporting to PNG cuts off edges of drawing

Post by Zizi64 »

Can you upload or share a sample file here? The file size limit is 128 KiB for the upload. You can share the larger files in a free file sharing service like the Google drive.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Exporting to PNG cuts off edges of drawing

Post by John_Ha »

Open the BMP with an image editor and save it as a PNG.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
SketchMan3
Posts: 4
Joined: Mon Feb 04, 2019 7:53 pm

Re: Exporting to PNG cuts off edges of drawing

Post by SketchMan3 »

John_Ha, that is a good workaround, thank you.

I have done that to upload the exported bmp sample file as a png here, along with a png and the odg. Notice how the smiley faces to the bottom and right are cut off.
Attachments
sample.bmp.png
sample.png
sample.odg
(11.12 KiB) Downloaded 169 times
Apache OpenOffice 4.1.5 on Windows 7
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Exporting to PNG cuts off edges of drawing

Post by RoryOF »

This is something to do with improper handling of the margins. Set your page format to have 0 margins all around, tell OO when it complains that you want the margins set thus, and then export. I think you will find all well.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
SketchMan3
Posts: 4
Joined: Mon Feb 04, 2019 7:53 pm

Re: Exporting to PNG cuts off edges of drawing

Post by SketchMan3 »

RoryOF wrote:This is something to do with improper handling of the margins. Set your page format to have 0 margins all around, tell OO when it complains that you want the margins set thus, and then export. I think you will find all well.
Thank you very very much! That did it. I also found through experimenting that if I uncheck "Save Transparency", the PNG exports without the cut-off issue (but then it doesn't have transparency)
Apache OpenOffice 4.1.5 on Windows 7
Bidouille
Volunteer
Posts: 574
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: [Solved] Exporting to PNG cuts off edges of drawing

Post by Bidouille »

Post Reply