summaryrefslogtreecommitdiff
path: root/include/uno
diff options
context:
space:
mode:
authorParis Oplopoios <paris.oplopoios@collabora.com>2022-10-19 16:57:11 +0300
committerTomaž Vajngerl <quikee@gmail.com>2022-10-24 18:24:48 +0200
commita03a47bb0791d88fedb2650bca412c28469b0b27 (patch)
tree2eb574afbc3716bde5091015bc13feca0d5a01f1 /include/uno
parent76601f1e935ec7cebbfec26c988bf6f77c638052 (diff)
tdf#150888 Scale down PPI if it would result in a tiny image
The reason for the blurry document in tdf#150888 is that the image is tiny. PPI is 2540 in that image but when using the window bounding box (96, 81) this results in a very small image that the .odt then scales up which makes it blurry. Apart from that, when opening the extracted .wmf in Draw it's also very small, around 0.04" squared. Because MM_ANISOTROPICs definition allows for arbritrary scaling, when an image would be smaller than an inch squared the PPI is scaled down to either the images width or height. This makes the extracted WMF match the size of competitor office suites and fix the blur bug without breaking past tests. Change-Id: I11eab879848d9308f818708a91fd9eb91fc65200 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141533 Tested-by: Jenkins Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/uno')
0 files changed, 0 insertions, 0 deletions