[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-18 Thread Ye Jingchen
https://bugs.kde.org/show_bug.cgi?id=460675

--- Comment #10 from Ye Jingchen  ---
(In reply to Toby from comment #6)
> I can confirm that the 5.27 update fixed my issue (Wayland, 1.75 scale,
> single monitor), so I suggest marking this as solved.
> 
> The multi-monitor case is more tricky and maybe should have its own separate
> issue.

You're right, it works fine on a single monitor. I will open another issue.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-17 Thread Toby
https://bugs.kde.org/show_bug.cgi?id=460675

--- Comment #9 from Toby  ---
(In reply to Toby from comment #8)
> (In reply to Ye Jingchen from comment #4)
> > (In reply to Vlad Zahorodnii from comment #3)
> > > The reason why screenshots are blurry is that kwin downscales the window
> > > contents. 5.27 should be better. Note that the client side should also
> > > support fractional scaling. Qt should support fractional scaling in 6.5+
> > 
> > I think the situation is a bit frustrating even in 5.27, because I still
> > can't get a screenshot that looks the same as what is on screen.
> > 
> > My theory is the same as what Toby described initially, that screenshots by
> > Spectacle are way blurrier that on screen, not only because window content
> > is scaled down (from 2x), but it's *scaled down and up again*, creating
> > artifacts not present on screen.
> > 
> > Though I wonder whether this is caused by kwin sending blurry images to
> > Spectacle, or Spectacle mess up scaling stuff internally.
> 
> 5.27 worked for me on Fedora KDE. I tested by displaying an image with
> single-pixel dots on the screen and taking a screenshot, all dots are
> clearly visible and not blurry. I guess it could be a distribution-specific
> issue.

Or might be related to multi-monitor setups

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-17 Thread Toby
https://bugs.kde.org/show_bug.cgi?id=460675

--- Comment #8 from Toby  ---
(In reply to Ye Jingchen from comment #4)
> (In reply to Vlad Zahorodnii from comment #3)
> > The reason why screenshots are blurry is that kwin downscales the window
> > contents. 5.27 should be better. Note that the client side should also
> > support fractional scaling. Qt should support fractional scaling in 6.5+
> 
> I think the situation is a bit frustrating even in 5.27, because I still
> can't get a screenshot that looks the same as what is on screen.
> 
> My theory is the same as what Toby described initially, that screenshots by
> Spectacle are way blurrier that on screen, not only because window content
> is scaled down (from 2x), but it's *scaled down and up again*, creating
> artifacts not present on screen.
> 
> Though I wonder whether this is caused by kwin sending blurry images to
> Spectacle, or Spectacle mess up scaling stuff internally.

5.27 worked for me on Fedora KDE. I tested by displaying an image with
single-pixel dots on the screen and taking a screenshot, all dots are clearly
visible and not blurry. I guess it could be a distribution-specific issue.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-17 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=460675

Nate Graham  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Nate Graham  ---
Indeed, that would make sense.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-17 Thread Toby
https://bugs.kde.org/show_bug.cgi?id=460675

--- Comment #6 from Toby  ---
I can confirm that the 5.27 update fixed my issue (Wayland, 1.75 scale, single
monitor), so I suggest marking this as solved.

The multi-monitor case is more tricky and maybe should have its own separate
issue.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-17 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=460675

Nate Graham  changed:

   What|Removed |Added

 Resolution|FIXED   |---
Version|5.25.5  |5.27.0
 Status|RESOLVED|REPORTED

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-16 Thread Ye Jingchen
https://bugs.kde.org/show_bug.cgi?id=460675

--- Comment #5 from Ye Jingchen  ---
Created attachment 156301
  --> https://bugs.kde.org/attachment.cgi?id=156301=edit
Dolphin window across screen border

I have two monitors side by side, the left one scaled at 200% and the right one
150%. This is what Spectacle takes after putting a Dolphin window at screen
border: left half is pixel sharp, but the right half is weirdly scaled. To the
eye, the right half roughly similar to the left half.

Using Plasma Wayland 5.27 on Arch Linux. GPU is AMD Radeon 680m (integrated
graphics), mesa 22.3.4-1.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-16 Thread Ye Jingchen
https://bugs.kde.org/show_bug.cgi?id=460675

--- Comment #4 from Ye Jingchen  ---
(In reply to Vlad Zahorodnii from comment #3)
> The reason why screenshots are blurry is that kwin downscales the window
> contents. 5.27 should be better. Note that the client side should also
> support fractional scaling. Qt should support fractional scaling in 6.5+

I think the situation is a bit frustrating even in 5.27, because I still can't
get a screenshot that looks the same as what is on screen.

My theory is the same as what Toby described initially, that screenshots by
Spectacle are way blurrier that on screen, not only because window content is
scaled down (from 2x), but it's *scaled down and up again*, creating artifacts
not present on screen.

Though I wonder whether this is caused by kwin sending blurry images to
Spectacle, or Spectacle mess up scaling stuff internally.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-10 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=460675

Nate Graham  changed:

   What|Removed |Added

 Resolution|WORKSFORME  |FIXED
   Version Fixed In||5.27

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-02-07 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=460675

Vlad Zahorodnii  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Vlad Zahorodnii  ---
The reason why screenshots are blurry is that kwin downscales the window
contents. 5.27 should be better. Note that the client side should also support
fractional scaling. Qt should support fractional scaling in 6.5+

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-01-27 Thread Ye Jingchen
https://bugs.kde.org/show_bug.cgi?id=460675

Ye Jingchen  changed:

   What|Removed |Added

 CC||ye.jingc...@gmail.com

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2023-01-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=460675

zvova7...@gmail.com changed:

   What|Removed |Added

 CC||zvova7...@gmail.com

--- Comment #2 from zvova7...@gmail.com ---
kwin 5.26.5 and related components is achieved support for fractional scale
protocol, and now content on the screen looks not blurry with non power of two
scales! This bug was my critical blocker before I can move to wayland session.
And now finally we have some initial support, that is great :)
But spectacle continues to take blurry screenshot. Also final image resolution
is not match to monitor resolution. With 150% scale on monitor with resolution
2560x1440 - final spectacle image resolution is 2561x1440. This is some
rounding issue, I assume.

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

[kwin] [Bug 460675] blurry screenshot under wayland with fractional scaling

2022-10-18 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=460675

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org
  Component|General |wayland-generic
Version|22.08.1 |5.25.5
Product|Spectacle   |kwin
   Assignee|m...@baloneygeek.com  |kwin-bugs-n...@kde.org

--- Comment #1 from Nate Graham  ---
In fact that's exactly what's happening; this is how fractional scaling works
on Wayland for the time being. It's an active area of work though, so hopefully
it will be better with Plasma 5.27.

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