kImageAnnotator icon indicating copy to clipboard operation
kImageAnnotator copied to clipboard

Cropping on HDPI screen not works (Ubuntu 21.04)

Open Tamas-Toth-ebola opened this issue 4 years ago • 4 comments

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

  1. Use a HDPI screen
  2. Get an image (its source is irrelevant)
  3. Click on 'crop'
  4. 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

Tamas-Toth-ebola avatar Jul 06 '21 17:07 Tamas-Toth-ebola

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!

Tamas-Toth-ebola avatar Jul 06 '21 17:07 Tamas-Toth-ebola

Maybe related to this one? https://github.com/ksnip/kImageAnnotator/issues/248

DamirPorobic avatar Jul 06 '21 17:07 DamirPorobic

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!

Tamas-Toth-ebola avatar Jul 06 '21 19:07 Tamas-Toth-ebola

No worries, I'll have a look into it.

DamirPorobic avatar Jul 07 '21 06:07 DamirPorobic