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
Support ImageGrab from clipboard on Linux via xclip and wl-clipboard #6751
Comments
Considering that we support |
I experimented with this, but found when I copied an image, xclip.movI have however created PR #6783 for |
Sorry for the wrong command. I've tested the command for xclip in X11 environment and updated the command. I don't know whether you are using X windows on Ubuntu when testing the xclip commands though. |
Thanks. I've added |
I'm trying to use ImageGrab in Google Colab and getting the error:
wl-paste and xclip are not Python projects and so not supported in Google Colab. Any workarounds possible? |
@benzen3 I think Python on Google Colab have no access to your system clipboard, because the Python process is running remotely. Therefore, it is impossible, and makes no sense, to support Google Colab. As a workaround, you can try to run the notebook locally. |
Currently,
grabclipboard
raisesNotImplementedError
on Linux. But I think we can use xclip or wl-clipboard if they are installed. A subprocess call saving the image to a temporary file should be enough.I'm willing to help implement this feature.
What did you do?
Try to grab an image from the clipboard on Linux
What did you expect to happen?
The image is grabbed
What actually happened?
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: