Bug 485066 - When you annotate an image in Gwenview, the resulting image is upscaled if display scaling is enabled
Summary: When you annotate an image in Gwenview, the resulting image is upscaled if di...
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.02.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-05 06:35 UTC by nyanpasu64
Modified: 2024-04-05 06:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A 2x1 checkerboard edited by X11 Gwenview's Annotate button at 125% scaling. (3.71 KB, image/png)
2024-04-05 06:35 UTC, nyanpasu64
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nyanpasu64 2024-04-05 06:35:46 UTC
Created attachment 168171 [details]
A 2x1 checkerboard edited by X11 Gwenview's Annotate button at 125% scaling.

SUMMARY
If your screen is set to fractional (eg. 125%) or 200% scaling, and you annotate an image from Gwenview, the resulting image is scaled by 125% or 200% rather than retaining its original size.

STEPS TO REPRODUCE
1. Login under X11 or Wayland with display scaling enabled.
2. Open an image in Gwenview.
3. In the left sidebar, click Annotate.
4. Optionally draw on the image. Then click OK.

OBSERVED RESULT
On X11, the image is resized by your current display scale factor (eg. 125%), using nearest neighbor interpolation (which results in uneven pixels).
On Wayland, the image is resized by (your current display scale factor → rounded up to the nearest integer scale factor). At 125% scaling, this is 200%.

EXPECTED RESULT
You can draw on the image at its original resolution (like editing it in GIMP or Kolourpaint).

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.7.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550M DS3H

ADDITIONAL INFORMATION