https://bugs.documentfoundation.org/show_bug.cgi?id=154170
Bug ID: 154170
Summary: LibO on Linux makes image cropping dependent on system
font dpi settings.
Product: LibreOffice
Version: 7.5.1.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Impress
Assignee: [email protected]
Reporter: [email protected]
Description:
Cropping of images in impress appears to be broken to the point of being
unusable on Linux.
Today, displaying a presentation, I noticed all the cropped images I had were
displayed with wrong cropping. This felt strange to me, because I had just
tried the presentation on another computer with a very similar setup and
everything was OK.
So I started looking into the matter:
- Same odp file
- Two computers with recent linux versions with KDE (one with Manjaro Linux,
the other with Kubuntu)
- Quite similar LibO versions (7.5.0.3 on manjaro from the distro, 7.5.1.2 on
kubuntu from TDF)
Correct display on one machine (manjaro), wrong on the other one (kubuntu).
So I started looking at what could be different across the two systems and I
found this notable discrepancy:
If you select the cropped image and you go to Format->Image->Crop Dialog, the
crop dialog window that appears shows various pieces of information about the
cropped image. Specifically, left of the "original size" button, you get some
info about the image size. The latter is shown both in pixels and in mm.
Furthermore the resolution in DPI is given.
Now, while the size in pixel was the same on the two systems, the size in mm
and the DPI were different!
Interestingly, one of the system was showing 96 dpi and the other one 110. The
latter number resonated with me. So I went on the desktop environment setting
and I checked. In the "fonts" panel there is a "Force fonts DPI" entry meant to
tell X about the screen DPI to scale the fonts accordingly. On one system this
value was at the default (96), while on the other one (the one mis-displaying
the cropped image) it was at (110). Bingo!
Changing the "Force fonts DPI" setting on KDE affects the image resolution that
LibO uses for image cropping. Putting the value down to 96 on the system that
was mis-displaying the cropped images magically made them correct!
Obviously to have cropping dependent on a setting made for the DE font scaling
makes no sense.
Tested LibO 7.4.x and it has the same issue.
Steps to Reproduce:
See the description above
Actual Results:
See the description above
Expected Results:
See the description above
Reproducible: Always
User Profile Reset: No
Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: PresentationDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
--
You are receiving this mail because:
You are the assignee for the bug.