https://github.com/eggplants/pimg
Simple CLI + Library to <save image in clipboard | copy image into clipboard>
https://github.com/eggplants/pimg
cli library pygobject python
Last synced: 12 months ago
JSON representation
Simple CLI + Library to <save image in clipboard | copy image into clipboard>
- Host: GitHub
- URL: https://github.com/eggplants/pimg
- Owner: eggplants
- License: mit
- Created: 2021-05-05T16:22:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-10T14:23:09.000Z (over 1 year ago)
- Last Synced: 2024-11-30T11:11:59.594Z (over 1 year ago)
- Topics: cli, library, pygobject, python
- Language: Python
- Homepage: https://pypi.org/project/pimg
- Size: 125 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `pimg`
[](
) [](
) [](
) [](
)
- CLI (and library) for saving an image in clipboard to a local file with PyGObject
- Inspired by [PasteImg](https://github.com/cas--/PasteImg)
- requires Python 2.x and PyGTK (Last-Modified: May 2011)
## Install
```bash
pip install pimg
```
## Example
- First, crop or copy image on browser
- e,g) Cropping a screen:
- Ubuntu: Shift+PrtScn
- Windows: Win+Shift+S
- To save an image in clipboard in local:
```bash
pimg g sth.png
```
- To copy a local image into clipboard:
```bash
pimg c sth.png
```
## Usage
```shellsession
$ 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
```
```shellsession
$ pimg g -h
usage: pimg get [-h] PATH
positional arguments:
PATH path of save file
options:
-h, --help show this help message and exit
```
```shellsession
$ 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)