[Libreoffice-bugs] [Bug 83734] EDITING: Cropped image gets distorted when Compress Graphic is used

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 2 11:36:48 UTC 2020


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

--- Comment #25 from Justin L <jluth at mail.com> ---
I am not a graphics guy at all.
But I think the problem is that SdrGrafCropItem is in 100mm, which is a fairly
useless number unless you know the DPI that it is connected with. And the DPI
changes constantly in this example - from the initial image's 300-DPI to the
compressed images preferred 72-DPI (despite the variable specifying 300).

Ultimately, I suspect the biggest problem is that SetPreferredSize is not done
with the compression-DPI.

The second problem is that we have no idea of the view-size of the image, only
the view-size of the cropped part. And the cropped parameters are also based on
some DPI - likely based on the GetPreferredSize scale.

Specifically, for attachment 106084 from comment 0: In the initial graphic, it
reports an original size of 6.77cm x 3.39cm @ dpi 300, but when compressing
(still to DPI 300 - the default), then the image properties report a much
larger distance (in mm) at DPI 72.  However, the scaling knows nothing about
this DPI coordinate change from 300 to 72, and so it scales and crops with
distances appropriate for 300DPI instead of 72DPI.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200302/00dec33a/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list