May-04-2018, 01:21 PM
Hallo,
I would like to get an image from clipboard in Linux Mint using Python 3.The only possibility I discovered so far
(and I appreciate other ideas here) is
given in
http://python-gtk-3-tutorial.readthedoc ... board.html
Unfortunately I am not able to save the Pixbuf "image" as a png or jpeg file e.g. when clicking "Paste".
I found the help pages
https://lazka.github.io/pgi-docs/GdkPix ... ixbuf.html
https://developer.gnome.org/gdk-pixbuf/ ... aving.html ,
but either the function save or savev is not found in the packages or
GdkPixbuf.Pixbuf.savev(image,'screenshot.jpg','jpeg',["quality"], ["100"])
does not have the right parameters
(although it is copied from https://stackoverflow.com/questions/2796...-in-python )
Does anybody know, how I can change http://python-gtk-3-tutorial.readthedoc ... board.html to make it work?
Best regards
I would like to get an image from clipboard in Linux Mint using Python 3.The only possibility I discovered so far
(and I appreciate other ideas here) is
given in
http://python-gtk-3-tutorial.readthedoc ... board.html
Unfortunately I am not able to save the Pixbuf "image" as a png or jpeg file e.g. when clicking "Paste".
I found the help pages
https://lazka.github.io/pgi-docs/GdkPix ... ixbuf.html
https://developer.gnome.org/gdk-pixbuf/ ... aving.html ,
but either the function save or savev is not found in the packages or
GdkPixbuf.Pixbuf.savev(image,'screenshot.jpg','jpeg',["quality"], ["100"])
does not have the right parameters
(although it is copied from https://stackoverflow.com/questions/2796...-in-python )
Does anybody know, how I can change http://python-gtk-3-tutorial.readthedoc ... board.html to make it work?
Best regards