Created attachment 165442 [details] 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
Could confirm the behavior for the testfile. Gives the same result here: size 4096x4096 which is about 104dpi. But this seems to be a problem of maximum size. If I set the picture to 20cm x 20cm it will give 2366x2366 when choosing 300dpi. And this is the right value for the resolution. Test made with different versions of LO, starting with LO 6.1.5.2 and ending with LO 7.0.4.1 on OpenSUSE 15.1 64bit rpm Linux.