https://bugs.documentfoundation.org/show_bug.cgi?id=134497

Buovjaga <ilmari.lauhakan...@libreoffice.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
             Blocks|                            |109323
            Summary|Inserted PNG image          |PNG not exported with the
                   |corruption when Draw image  |same dimensions when
                   |is exported in PNG format.  |original DPI is
                   |                            |non-standard

--- Comment #7 from Buovjaga <ilmari.lauhakan...@libreoffice.org> ---
(In reply to Robo Pluhar from comment #6)
> Created attachment 173920 [details]
> 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.

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


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=109323
[Bug 109323] [META] Graphic export bugs and enhancements (jpg, png, eps, tiff,
gif ...)
-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to