Cropping on HDPI screen not works (Ubuntu 21.04)
Describe the bug Cropping a screenshot captured on a HDPI screen (eg.: 4k screen with 200% scale) is randomly false (and maybe zoom based).
To Reproduce
- Use a HDPI screen
- Get an image (its source is irrelevant)
- Click on 'crop'
- You will get non-cropped or badly cropped result (sometimes non-cropped, simetimes the crop has not the same area what I defined before)
Expected behavior On the same device just without HDPI settings (1920x1080 with 100% scale) the function is perfect. At every crop we get what we expect.
Screenshots Non applicable. I made an aniGIF about the process but I dropped it as it was not enough/so illustrative.
Desktop (please complete the following information):
- Device: Intel - NUC8i7 + LG - UltraFine 4k (24MD4KL-B)
- OS: Linux
- Distribution: Ubuntu Desktop 21.04 with latest daily upgrades
- Windowing system: X11 / GNOME - 3840x2160/200% scale
- ksnip: v1.9.0
- How did you install ksnip: Flatpak
Additional context
As I really love ksnip, from my opinion the best screenshot/annotator, I hope you could solve this problem.
From another aspect I really thanks for all the developers for the app!
Maybe related to this one? https://github.com/ksnip/kImageAnnotator/issues/248
Could be, but can not 100% confirm. What is sure that on 200% scaled display the crop is off. Sadly could not precisely define how wrong. Sometimes non-cropped, sometimes wrong area, size, etc. But never good.
Thanks for your attention!
No worries, I'll have a look into it.