Summary: | File picker previews don't properly render small images | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | tomtomtomreportingin |
Component: | General | Assignee: | amyspark <amy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amy, freebox64 |
Priority: | NOR | ||
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/5d1893c91797c0a45f97494aba6bc340fc84c674 | Version Fixed In: | |
Sentry Crash Report: |
Description
tomtomtomreportingin
2022-01-02 00:14:24 UTC
Hi, I can reproduce this on Ubuntu 18.04.6 LTS with appimage Version: 5.0.1-alpha (git 603a2f6) A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1282 Git commit 7770a821e6f2cb66c45da14ca3ade4db39914167 by L. E. Segovia. Committed on 09/01/2022 at 15:03. Pushed by lsegovia into branch 'master'. Fix sizing of preview images There are inconsistencies in the resizing when the image is either too small or the height is bigger than the width. Applying the centering correction against maxIconSize will cause parts of the image to be chopped off if the iconSize is smaller than the result size. Also draw preview in high res on Hi-DPI displays. M +13 -8 libs/ui/utils/KisFileIconCreator.cpp M +3 -1 libs/widgetutils/KisPreviewFileDialog.cpp https://invent.kde.org/graphics/krita/commit/7770a821e6f2cb66c45da14ca3ade4db39914167 Git commit 5d1893c91797c0a45f97494aba6bc340fc84c674 by L. E. Segovia. Committed on 09/01/2022 at 15:06. Pushed by lsegovia into branch 'krita/5.0'. Fix sizing of preview images There are inconsistencies in the resizing when the image is either too small or the height is bigger than the width. Applying the centering correction against maxIconSize will cause parts of the image to be chopped off if the iconSize is smaller than the result size. Also draw preview in high res on Hi-DPI displays. (cherry picked from commit 7770a821e6f2cb66c45da14ca3ade4db39914167) M +13 -8 libs/ui/utils/KisFileIconCreator.cpp M +3 -1 libs/widgetutils/KisPreviewFileDialog.cpp https://invent.kde.org/graphics/krita/commit/5d1893c91797c0a45f97494aba6bc340fc84c674 |