https://bugs.kde.org/show_bug.cgi?id=487997

            Bug ID: 487997
           Summary: [wayland] Spectacle Rectangular Region Screenshots
                    Saving Wrong Resolution and Poor Quality
    Classification: Applications
           Product: Spectacle
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: noaha...@gmail.com
          Reporter: eamonn...@protonmail.com
                CC: k...@david-redondo.de
  Target Milestone: ---

SUMMARY
On the Wayland session, taking a rectangular region screenshot with Spectacle,
the resolution is always incorrect, and the quality is bad. This affects both
scaled and non-scaled displays. This issue is specific to region screenshots
and "Capture Entire Desktop" screenshots. All other screenshot types (Active
Window, Current Monitor, Window Under Cursor) all work fine.

These are my issues with Rectangle Region screenshots:
- Spectacle may show a resolution of over 5,000 pixels in width and almost
3,000 pixels in height on a 3840x2160 display (scaled to 150%) in the
Resolution Preview Box when selecting a region. However this issue happens
regardless of whether the display is scaled.
    - On the scaled display, Rectangular Region screenshots have this slightly
jpeg-like outline around them as if they are compressed. Perhaps this is
related to some kind of OpenCV upscaling?
- On a 1920x1080 display, selecting close to the full size of the display with
a Rectangular Region will show close to 3840x2160. With enough precision I
could probably save an exact screenshot as 3840x2160.
    - Despite the resolution being wrong here, the actual image quality is
better than on the scaled display. It just looks a bit overly sharpened and of
course too big (in terms of resolution and filesize).
- As of Plasma 6.0.5, the shown resolution on this Preview Box *is actually*
the resolution the image is saved as. However, this resolution is not correct,
this is not how many pixels are selected.

It is also worth noting that when taking a "Capture Entire Desktop" screenshot,
the resolution of one 1920x1080 display is actually 3840x2160. The resolution
of the scaled display is 5120x2880. If you multiply these values by 0.75, you
get 3840x2160. Perhaps this is relevant?

I would also like to mention in case there is any confusion, I am not taking
region screenshots across displays. This is a single region screenshot on a
single display.

STEPS TO REPRODUCE
1. Take a region screenshot with Spectacle.
2. The saved resolution is incorrect.
3. As well as this,
    a. On scaled displays, the image quality is poor.
    b. On non-scaled displays, the resolution is wrong.

OBSERVED RESULT
Spectacle saves Rectangular Region and Capture Active Window screenshots with
the incorrect resolution and poor image quality on both scaled and non-scaled
displays.

EXPECTED RESULT
Spectacle saves all screenshot types with the correct resolution and correct
quality. Cropped Active Window screenshots and region screenshots of that
cropped area should look identical.

This was the behaviour in Plasma 5.27 if I recall.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.3 Linux Zen
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 5.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
My screenshots are saved as PNG with 90% compression quality.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to