[Libreoffice-bugs] [Bug 136707] New: Draw export to png: incorrect density and size
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 13 07:55:49 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=136707
Bug ID: 136707
Summary: Draw export to png: incorrect density and size
Product: LibreOffice
Version: 7.0.0.3 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: patrik at eschle.com
Created attachment 165442
--> https://bugs.documentfoundation.org/attachment.cgi?id=165442&action=edit
Square 100 cm x 100 cm on page 100 cm x 100 cm. Exporting to jpeg works
correctly, exporting to png results in wrong density and size
A square of size 100 cm x 100 cm is exported from LO-Draw to png. The density
is set to 150 dpi and the size to 100 cm x 100 cm. The exported file has an
incorrect density of 72 dpi (ImageMagick identify) and an incorrect size of
4096 x 4096 pixels. The size of the exported file corresponds to a density of
4096/(100/2.54) = 104 dpi.
Exporting to jpeg works correctly. With the same settings in the export
dialogue the exported file has a density of 150 dpi and a (slightly rounded)
size of 5925 x 5925 pixels (100/2.54*150 = 5906).
To reproduce:
- Open LO-Draw
- Set the page size (Page / Properties) to 100 cm x 100 cm
- Set the margins to 0
- Draw a rectangle
- Set the size of the rectangle to 100 cm x 100 cm and the position to 0,0
(right click / Position and Size / Position and Size)
- Select the rectangle
- File / Export
- In the file dialogue, check "Selection" and select "PNG - .." from the menu
- In the PNG Options dialogue set the resolution to 150 pixels/inch (the size
in cm will change)
- Set Width to 100 cm. Pressing TAB will set Height to 100 cm.
- Leave Interlaced and Save transparency checked
- Click "OK"
- Check the result with identify from ImageMagick (or GIMP etc.)
identify -format "%f: size %wx%h, resolution %xx%y dpi, depth %z\n"
Test_Resolution_150dpi.png
Test_Resolution_150dpi.png: size 4096x4096, resolution 72x72 dpi, depth 8
Repeat the procedure and export to jpeg with same setting. All figures are as
expected.
identify -format "%f: size %wx%h, resolution %xx%y dpi, depth %z\n"
Test_Resolution_150dpi.jpg
Test_Resolution_150dpi.jpg: size 5925x5925, resolution 150x150 dpi, depth 8
--
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/20200913/ff80c445/attachment.htm>
More information about the Libreoffice-bugs
mailing list