Bug 477331 - Black line at bottom of every screenshot
Summary: Black line at bottom of every screenshot
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 23.08.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 13:32 UTC by Henning
Modified: 2023-11-24 18:19 UTC (History)
1 user (show)

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


Attachments
Copied screenshot to Libreoffice and exported from there (1.13 KB, image/png)
2023-11-21 13:52 UTC, Henning
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2023-11-21 13:32:25 UTC
1. create a screenshot of something
2. paste it into libreoffice writer

For me the lowest pixel line always has a black line for some reason.

Specified App:
spectacle-23.08.1-1.fc39.x86_64

--- Software ---
OS: Fedora Linux 39 (Kinoite)
KDE Plasma: 5.27.8
KDE Frameworks: 5.110.0
Qt: 5.15.10
Kernel: 6.5.6-300.fc39.x86_64
Compositor: wayland

--- Hardware ---
CPU: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
RAM: 21.4 GB
GPU: AMD Radeon Vega 8 Graphics
Video memory: 2048MB
Comment 1 Henning 2023-11-21 13:52:11 UTC
Created attachment 163344 [details]
Copied screenshot to Libreoffice and exported from there

This is not happening when saving the screenshot and then copying the file to Libreoffice. Very weird.
Comment 2 Noah Davis 2023-11-22 05:02:26 UTC
The screenshot you posted is entirely white for me. Did you mean to send a different picture?
Comment 3 Henning 2023-11-24 00:43:35 UTC
weird...

So its like that, that if a screenshot is pasted from spectacle directly into writer there is a black 1px line at the bottom.

I exported that image from writer and uploaded.

This was not the case when the screenshot was saved and then imported into libreoffice writer.

Maybe this was some sort of rendering issue? It was still there when not focussing the image and all...
Comment 4 Noah Davis 2023-11-24 04:31:51 UTC
(In reply to Henning from comment #3)
> weird...
> 
> So its like that, that if a screenshot is pasted from spectacle directly
> into writer there is a black 1px line at the bottom.
> 
> I exported that image from writer and uploaded.
> 
> This was not the case when the screenshot was saved and then imported into
> libreoffice writer.
> 
> Maybe this was some sort of rendering issue? It was still there when not
> focussing the image and all...

It's not impossible that there might be a 1px thick transparent line if you are using a fractional scale factor. A transparent line might be treated as a black line in situations where transparency isn't supported.
Comment 5 Henning 2023-11-24 09:12:39 UTC
I guess Plasma 6 with the new fractional scaling (its ready, isnt it?) will fix this then. I am curious what you think of "stable Distros" though, as these will have the same issues for years
Comment 6 Noah Davis 2023-11-24 15:13:07 UTC
(In reply to Henning from comment #5)
> I guess Plasma 6 with the new fractional scaling (its ready, isnt it?) will fix this then.

Not necessarily. Are you having the problem with all types of screenshots or just some types? I see you are on Wayland. On Wayland, the images you get are coming directly from KWin and then being edited by Spectacle when annotating or doing region selection. If you are getting this problem with the all screens, current screen or window capture modes, then the problem is coming from KWin and may or may not be fixable. If the problem is only with region capture, then there is a chance that a size calculation is being done incorrectly in spectacle. On the other hand, screen size is often scaled and then rounded to integers by the APIs used to get screen sizes, even on Wayland. This results in a loss of precision and there's not much I can do about that. If the bug is caused by the loss in precision, then I might not be able to fix it.

> I am curious what you think of "stable Distros" though, as  these will have the same issues for years

It's just how it is, same as it ever was.
Comment 7 Henning 2023-11-24 18:19:17 UTC
so this happened with a "choose a rectangle" screenshot.