On exporting a large file (12 inches x 9 inches at 300dpi) from LibreOffice Draw to .PNG or .JPG format, the resolution is significantly reduced...to under 100 dpi.
Steps to reproduce:
1. Create a LibreOffice Draw Document with a page size of 12.84" x 9.25" and a background image at 300dpi resolution....
2. Mouse to FILE -- Export -- FileType .PNG -- Save
In "Options" Window hit:
Resolution: 300 pixels / inch
Width: 12.84 inches
Height: 9.25 inches
Save Transparency: off
3. Click OK....
4. Look at the PNG file which was just created. It is too small, i.e. the resolution is too low.
Under Operating System LinuxMint 13-Maya or LinuxPuppy Precise 5:
There is no problem here when running LO Draw 4.0.4
The problem appears in LO Draw 4.1
* * *
Operating System: Linux (Other)
Version: 184.108.40.206 release
Last worked in: 220.127.116.11 release
I will confirm this is a bug and describe it as follows to illustrate the bug:
* Start Draw
* Draw something
* Select nothing
* File-> Export
* Select png as the format, name it and OK
* Under options, select a height of 1600 pixels
* Turn on the "Save Transparency"option
* Export/save it
* Examine the output file, it will NOT be 1600 pixels high
HOWEVER, if you turn OFF "Save Transparency" then it will honor the selected resolution and work correctly.
If you choose just a selection to export, instead of the entire page, then it will honor the selected resolution and work correctly.
If you choose to export as a jpeg instead of png, then it will honor the selected resolution and work correctly.
*** Bug 69086 has been marked as a duplicate of this bug. ***
bug confirmed with 4.1.0 and 4.1.1 final releases under Win7 4bit.
works fine with 4.0.5 final.
looking at the .png output it seems that 4.0.5 saves the background of the Draw page and the text or shape inside, while 4.1.x saves just the text or shape with no background so this may explain the pixel size difference
I confirm that if you turn OFF "Save Transparency" both the background and text/shapes are exported.
I see no issues saving as .jpeg (there's no "Save Transparency" option there) so I edit summary notes
*** Bug 65379 has been marked as a duplicate of this bug. ***
(In reply to comment #4)
> *** Bug 65379 has been marked as a duplicate of this bug. ***
I copy and paste this interesting post from Bug 65379 that could help the devs.
>>Tomofumi Yagi 2013-06-09 16:49:25 UTC
>>Probably, commit a1a0830d1ac3ffabbe35bd8a0264b64f1f7a9d67( ”Resolves: #i119601# support for transparency in PNG export dialog” ) causes this problem.
*** Bug 70395 has been marked as a duplicate of this bug. ***
The bug seems to be similar to bug 70395 which describes the same problem with gif exporting.
When I try to export picture from libreoffice draw to GIF I can not get more size than 595x841 pixels.
Steps to reproduce:
1. Run libreoffice draw
2. click File->Export
3. Select GIF file type
4. Press Save button
5. In window "Options" set width more than 595 pixels, set "Save tranparency" on and press OK.
The created file has a size of 595x841 pixels.
The file should have a size which was set in "Options" dialogue.
I have tried it in libreoffice 4.0.3 and 18.104.22.168 in Windows 7 and libreoffice 4.1.0-5~bpo70+3 from debian backports with the same result.
When "Save tranparency" is off everything is OK
The same problem is with png format.
Exporting to BMP or JPEG is correct.
This bug has been fixed on master already: 89d01a7d8028ddb765e02c116d202a2435894217
I cherry-picked it to libreoffice-4-1
It looks like the issue is still present in the latest Libreoffice 4.2 release.
(In reply to comment #9)
> It looks like the issue is still present in the latest Libreoffice 4.2
Actually even though the resolution field seems like not taken into account when doing the export, it's still possible to specify bigger width and height for the exported picture so to produce a higher quality output.
(Re)closing the ticket.
I can not reproduce the bug with LibreOffice draw 22.214.171.124 nor 126.96.36.199 on Debian GNU/Linux. This bug seems to be really fixed.
Maybe you met bug 37678. If you discover something else, please, report it with step by step description.