Save an image in clipboard
Project description
pimg
- CLI (and library) for saving an image in clipboard to a local file with PyGObject
- Inspired by PasteImg
- requires Python 2.x and PyGTK (Last-Modified: May 2011)
Install
pip install pimg
Example
- First, crop or copy image on browser
- e,g) Cropping a screen:
- Ubuntu: Shift+PrtScn
- Windows: Win+Shift+S
- e,g) Cropping a screen:
- Then, to save the image in clipboard in local:
$ pimg g sth.png
$ file sth.png
sth.png: PNG image data, ...
Usage
$ pimg -h
usage: pimg [-h] [-V] {get,g,copy,c} ...
Save an image in clipboard / Copy an image to clipboard
positional arguments:
{get,g,copy,c}
get (g) get/save an image from clipboard
copy (c) copy a local image to clipboard
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
$ pimg g -h
usage: pimg get [-h] PATH
positional arguments:
PATH path of save file
options:
-h, --help show this help message and exit
$ pimg c -h
usage: pimg copy [-h] PATH
positional arguments:
PATH path of image to copy
options:
-h, --help show this help message and exit
license
MIT
Author
haruna(eggplants)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pimg-0.1.1.tar.gz
(4.3 kB
view details)
Built Distribution
pimg-0.1.1-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file pimg-0.1.1.tar.gz
.
File metadata
- Download URL: pimg-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae82be3c5dcbb12b8c54ebf2e86d85ff6afa5cd4d4deb9b77ea468d805ea0bd |
|
MD5 | b5c94883abf2474e396eaefdd468e7d5 |
|
BLAKE2b-256 | ef90bdb032f7d2add57fd7c41f62f88b5e421928aad2f547292dd606de2fab48 |
File details
Details for the file pimg-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pimg-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4376cc54153ac0f27a5bccc0fcb035b6a369752ec948a10218f6092d025390 |
|
MD5 | bfd6ce58b82d6d12e8747f63192e9043 |
|
BLAKE2b-256 | b59995790b233d6d237d20a994f695b88966464bc23c2afb3e52ee892638a2cd |