[Libreoffice-bugs] [Bug 101106] PNG export of full page in Draw does not respect margins
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 6 05:47:19 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=101106
--- Comment #7 from Bart Besseling <bbesseling at quarium.com> ---
I create a new document using LO Draw.
The default page is 8.5" by 11" in portrait orientation.
The page has the default left, right, top and bottom margins of 0.39", leaving
a usable area of 7.72" by 10.22".
I create a graphic, e.g. a square box, of 3.24" by 2" against the top and left
margins.
I select File->Export and save the entire page as PNG type.
The width and height are 8.5" by 11" as expected.
The default resolution is 96 pixels per inch which is fine.
I select compression "1" and use the defaults of interlaced and save
transparency.
The PNG IHDR chunk confirms the image is 816 by 1056 pixels, which at 96ppi is
8.5" by 11".
The square box graphic I added is now aligned to the top-left of the page
image, not to the top left margins I set on the page where I drew it.
The box itself is now rasterized to 344 by 208 pixels. At the 96ppi I selected,
this should have been 311 by 192.
Draw exports the area inside the page margins to a PNG to the size of the
entire page, scaling it up.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200706/e8f6879a/attachment.htm>
More information about the Libreoffice-bugs
mailing list