[Libreoffice-bugs] [Bug 134497] PNG not exported with the same dimensions when original DPI is non-standard

2021-07-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134497

--- Comment #8 from Robo Pluhar  ---
Created attachment 173933
  --> https://bugs.documentfoundation.org/attachment.cgi?id=173933&action=edit
Inage properties (PhotoFiltre, IrfanView)

(In reply to Buovjaga from comment #7)
> 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.

I opened the image in PhotoFiltre and IrfanView and both of them claim that the
DPI is 72x72, and ImageMagick says:

$ identify -verbose -units PixelsPerInch ExStudPr_17_predmet_planu_plain.png
Image: ExStudPr_17_predmet_planu_plain.png
  Format: PNG (Portable Network Graphics)
  Mime type: image/png
  Class: DirectClass
  Geometry: 742x300+0+0
  Resolution: 71.98x71.98
  Print size: 10.3084x4.16782
  Units: PixelsPerInch

Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org

-- 
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


[Libreoffice-bugs] [Bug 134497] PNG not exported with the same dimensions when original DPI is non-standard

2021-07-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134497

Buovjaga  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  ---
(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