-
Notifications
You must be signed in to change notification settings - Fork 39
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
Image is cutoff / cropped #6
Comments
@jdonofrio728 it seems you are using the Let me know if it fixes the issue for you. |
Hey @jtheoof thanks for the response. The actual command that is being executed by sway is This is the first example from the README. So the -g option from swappy is not in play here. Something else seems to be problematic :( |
You're right, my bad I read too fast. Let me see if I can figure out what's going on. |
@jtheoof I did a little experiment this morning, and I think the issue might be around the fact that my displays are scaled. I have a 4k display scaled to 2. If I reduce the scaling to 1, then the screen shot copies correctly. |
OK I'm gonna try to reproduce it. How do you scale the display with |
Grab your outputs by running Then set the scale by running (eDP-1 is my screen): |
I have not forgot about you @jdonofrio728. |
Compute the size of the GTK window based on sane compute that works well for single monitor. Still not sure how this behaves on multi monitors. Closes #6
Compute the size of the GTK window based on sane compute that works well for single monitor. Still not sure how this behaves on multi monitors. This also fixes the issue where swappy would crop the image on scaled output displays. Closes #6
Compute the size of the GTK window based on sane compute that works well for single monitor. Still not sure how this behaves on multi monitors. This also fixes the issue where swappy would crop the image on scaled output displays. Closes #6
Hi @jdonofrio728, the issue should now be fixed with latest swappy. |
Hi @jtheoof , I can still reproduce this issue on the latest master. My scale is |
@maximbaz Are you using swappy with the |
|
If you want I can try to get you some debug info from my system, if you want me to try a development branch with a bunch of |
@jtheoof I can also validate that the issue is not fixed. The preview window shows the screen shot correctly. But when you copy it to your clipboard and paste it somewhere, it is cropped. |
Oh I see. My bad, I'll reopen this issue. |
This fixes the scaling issue when user would copy or save the file. Commit `445980b` only solved the rendering part not the pixbuf part. Closes #6
This fixes the scaling issue when user would copy or save the file. Commit `445980b` only solved the rendering part not the pixbuf part. Closes #6
@jdonofrio728 @maximbaz I fixed the |
It works! Thank you so much 🎉 |
@jtheoof definitely working! Thank you! |
I've recently discovered this tool and implemented it into my daily workflow. However for some reason the images when copied to clipboard or saved are cut off or zoomed in. Here is an example
This picture is a screen shot straight from grim into wl-copy
This is the "same" screen shot which goes into swappy then into my clipboard:
I'm running sway 1.0 with wlroots 0.10.0 (latest on arch)
Let me know if there is anything else that you may need to debug!
The text was updated successfully, but these errors were encountered: