<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ilmari.lauhakangas@libreoffice.org" title="Buovjaga <ilmari.lauhakangas@libreoffice.org>"> <span class="fn">Buovjaga</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - PNG not exported with the same dimensions when original DPI is non-standard"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=134497">bug 134497</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>NEW
</td>
</tr>
<tr>
<td style="text-align:right;">Blocks</td>
<td>
</td>
<td>109323
</td>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>Inserted PNG image corruption when Draw image is exported in PNG format.
</td>
<td>PNG not exported with the same dimensions when original DPI is non-standard
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - PNG not exported with the same dimensions when original DPI is non-standard"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=134497#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - PNG not exported with the same dimensions when original DPI is non-standard"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=134497">bug 134497</a>
from <span class="vcard"><a class="email" href="mailto:ilmari.lauhakangas@libreoffice.org" title="Buovjaga <ilmari.lauhakangas@libreoffice.org>"> <span class="fn">Buovjaga</span></a>
</span></b>
<pre>(In reply to Robo Pluhar from <a href="show_bug.cgi?id=134497#c6">comment #6</a>)
<span class="quote">> Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=173920" name="attach_173920" title="PNG image for testing, 742x300px">attachment 173920</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=173920&action=edit" title="PNG image for testing, 742x300px">[details]</a></span>
> PNG image for testing, 742x300px
>
> There is a picture 742x300 px in the attachment. In my previous comment (nr.
> 4) I made a mistake and used 724px instead of 742. I am sorry for that.
> Now, when I use correct width 742px in the "PNG Options" dialogue LO
> calculates 300px height (which is correct and aspect ratio is preserved).
>
> So expected result is just one:
> * when exported picture is in its original size (in the drawing), the PNG
> Options dialogue should use the same size in pixels by default.</span >
This image has a weird DPI. If I open it with GIMP and view Image - Properties,
it shows DPI as 2,834×2,834 px/mm. GIMP does export it correctly, however, and
even preserves the DPI.
With LibreOffice, to export an image in its original size, you need to
right-click the image and select Original size first. If we do it in this case,
the exported resolution is 990x400 and the DPI will change to 72x72 ppi.
So LibreOffice should learn to behave as smartly as GIMP.
NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 67e47070a7580a17804adce812cc2f98bfe7b51f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] Graphic export bugs and enhancements (jpg, png, eps, tiff, gif ...)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=109323">Bug 109323</a>] [META] Graphic export bugs and enhancements (jpg, png, eps, tiff, gif ...)
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>