-
-
Notifications
You must be signed in to change notification settings - Fork 198
Snipping area incorrectly positioned with screen scaling #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Btw. I also tested the AppImage and had (almost) the same result. |
Thanks for opening the bug. Is it a scaling problem or positioning problem? Looking at the right side which seems to have the correct height, just positioned wrong. Or am I looking at it wrong? I'll try to install KDE Neon and try it out for myself, though I have currently the problem of having only one monitor. Does it happen with single monitor? |
It's a positioning problem and the preview is also horizontally stretched. I currently don't dare to turn one screen off, since I would need to reboot then. 😆 Having two high dpi screens still can make a lot of troubles under Linux. I can't test my other dual screen setup at work neither because of Corona. (Because I knew this issue will be hard to fix I initially just proposed #275. 😁) Spectacle manages to do it right, but that doesn't help a lot. |
That's very strange, thanks for double checking this. Don't bother yourself further with this, I'll try to test on my machine or a vm. |
Reproducing such issues is a major PITA, I've quite some on https://github.com/pbek/QOwnNotes myself. 😆 |
Yeah, I know, had few of them already, across different OS xD |
No issues on a KDE Neon box with a single, non-zoomed display. |
Ok, that's at least something I can test, Single Display with Zoom. |
Although only one screen, correct? Too bad I cannot test with my office setup right now. 😬 |
Yeah, single Monitor. It's currently my only setup, have no external Monitors at home anymore. |
I found something out. If I remove the env variable |
Thanks for looking into this again. I'm finishing up the 1.7.0 release and wanted to look into this issue today after work. Your finding confirms that scaling is the problem, seems that some parts are scaled and other not which creates this strange behavior. |
As a reference: Spectacle is ok with the env variables. UI and screenshots are as they should in Spectacle. At least I can now unset the env variables in the ksnip desktop file and live with the small ui but gain correct screenshots! 😁 |
But if you can get around that behavior it would be awesome! 🥳 |
Will have a look at that too |
This is one nasty issue. I have the feeling that it's caused by some change in Qt with version 5.8 or 5.9. I know that the scaling was working for me with my last KDE Version, with my current it's not working for me anymore though the issue looks a bit different on my side. I have just disabled scaling for testing purpose for versions above 5.8. Could you quickly test how it behaves for you? |
Edge snap? |
Let me change another method before you test anything.
…________________________________
From: Patrizio Bekerle <[email protected]>
Sent: Thursday, June 11, 2020 7:08:03 AM
To: ksnip/ksnip <[email protected]>
Cc: Damir Porobic <[email protected]>; Assign <[email protected]>
Subject: Re: [ksnip/ksnip] Problems capturing screenshots with dual 4k displays zoomed to 150% (#276)
Edge snap?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#276 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADBUCTHSEFLSLWMTNMLPV63RWBRDHANCNFSM4LU6XDDQ>.
|
Difficult issue indeed. Can you give it a try and test with the appImage or edge snap? Also, what coordinates to you see on the mouse when the mouse cursor is in the top left corner on the left monitor? Do you see 0,0 or something else? |
Now the user interface is too small (like when I use my variables) but the screenshot is still wrong.
|
Something's fishy, I get an offest too on my Plasma with scaling enabled and multiple screens but no clue where it's coming from. How does a fullscreens screenshot look? Did it work before? Is it still working? |
Changing the x value does not change the size of the top or bottom bar. |
The offset, x and y is just the position of the background image, it should not affect the size. I'm bit puzzled where it comes from. I have seen the on the left side in my testing but never at the top or bottom. Need to test again. |
this is the simplest way of workaround, I can use it with Before disabled After disabled
|
I also tested the latest Continuous build,wow, it woks ,with out any weird of UI and only a simple settings of offset, I will accept this way as a temp solution before |
and also image crop is not working 3.mp4 |
I'll have a look at the magnifier. The crop issue is known ksnip/kImageAnnotator#250, would be nice if you could attach your video there. |
@ihipop Adorner (magnifying glass, rulers, info text) should be positioned correctly now. |
magnifying glass IS STILL not working with a new issue 3.mp4my And the crosshair pointer is gone, only have a single horizontal red line left on screen, the vertical line disappears |
Oh well, it's extremely minor so it's fine. Thanks for trying though. |
Awesome, thanks for checking. @gubareve if you find a way to reproduce this I'll have another look into. Closing this issue. |
I am having the same issue! |
@teixeire what issue? The initial? Have you tested with the continuous build of |
Hi, I have a similar problem: i run with double monitor,
Ubuntu 20.04, tried with ksnip continuous release that you mentioned above |
I am also facing this bug, I'll provide as much information as I can When you have Global scale enabled, using the Rectangular Area tool shifts the screens to the horizontally to the left, causing one to be cut off and the far right one to have a grey area to the right where the screen should have been. Using a larger scale size seems to shift the screens more. To Reproduce
Expected behavior Desktop (please complete the following information): ksnip version: 1.10.0 Flatpack for stable. Used continuous rpm |
I managed to 'fix' this for myself, and I'm not sure why it works, but basically I have two monitors 1920x1200 and a 1920x1080. The 1920x1200 was the default monitor and like the examples above it was always off when taking a screenshot. I set the 1920x1080 as the default monitor instead and now the screenshots are perfect. Only mentioning in case it helps someone out there. |
I can confirm upgrading from |
I can confirm this: It seems to be a KDE-specific issue, because i have the exact behaviour with Ksnip and Flameshot. My system: when i put the scaling back to 100% both of them work as they should. |
Edit (12 oct 24): Having the same issue on my 13 inch Framework, with Manjaro Cinnamon. In my case the issue only occurs with fractional scaling enabled, which is labeled as "experimental" under the Cinnamon GUI. So I suspect this "fractional scaling" to be the cause of the issue. If I could, I would disable this "fractional scaling" option. I sadly can't, because:
My display is only 13 inch with 2256x1504 (3:2) resolution, so 100% scaling is unreadable small, whilst 200% is ridiculous large and clumsy. I prefer 125% as the optimal choice, which requires "fractional scaling" to be enabled. One workaround that I discovered, is to select the option "Full screen (All monitors)" in "Ksnip", then crop the printscreen afterwards in "Ksnip" itself. Hope this solution helps others as wel. |
I'm getting this issue on Win11 OS: Windows 11 (10.0.22631) 64bit [WindowsEditor] I have two monitors, primary 1920x1200, secondary 4K. I try to capture a third of the screen on my primary, and a small section of the secondary is captured instead. Bonus bug, the attached image was saved from ksnip, and it the saved file has white borders that the image did not have within ksnip. |
Following up on #275.
Unfortunately capturing rectangular screenshots (ksnip installed from the edge snap) doesn't seem to work for me in KDE Neon with my two 4k displays (zoomed to 150%). I guess that's because Qt is reporting the resolution after the zoom.
Primary screen resolution:
2560x1440
Screen resolution(s):
2560x1440, 2560x1440
ksnip thinks I have the full 4k resolutions but the screenshot only gets a part of full image.
How my screen should look like (screenshot take with Spectacle):
How it looks like when I want to grab a region with ksnip (sorry, hard to see because of the dark overlay of ksnip):
On the left screen you see a big part of the right screen.
The text was updated successfully, but these errors were encountered: