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

Discuss the drawing application

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

Postby SketchMan3 » Mon Feb 04, 2019 8:40 pm

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
SketchMan3
 
Posts: 4
Joined: Mon Feb 04, 2019 7:53 pm

Re: Exporting to PNG cuts off edges of drawing

Postby Zizi64 » Mon Feb 04, 2019 9:10 pm

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; LO6.1.6 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.5; AOO4.1.6
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.
User avatar
Zizi64
Volunteer
 
Posts: 8152
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Exporting to PNG cuts off edges of drawing

Postby John_Ha » Mon Feb 04, 2019 9:22 pm

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.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6742
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Exporting to PNG cuts off edges of drawing

Postby SketchMan3 » Mon Feb 04, 2019 9:28 pm

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 24 times
Apache OpenOffice 4.1.5 on Windows 7
SketchMan3
 
Posts: 4
Joined: Mon Feb 04, 2019 7:53 pm

Re: Exporting to PNG cuts off edges of drawing

Postby RoryOF » Mon Feb 04, 2019 9:51 pm

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.6 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29299
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Exporting to PNG cuts off edges of drawing

Postby SketchMan3 » Mon Feb 04, 2019 9:59 pm

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
SketchMan3
 
Posts: 4
Joined: Mon Feb 04, 2019 7:53 pm

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

Postby Bidouille » Wed Feb 06, 2019 10:58 am

User avatar
Bidouille
Volunteer
 
Posts: 270
Joined: Mon Nov 19, 2007 10:58 am
Location: France


Return to Draw

Who is online

Users browsing this forum: No registered users and 1 guest