Metadata-Version: 2.1
Name: pimg
Version: 0.0.2
Summary: Save an image in clipboard
Home-page: https://github.com/eggplants/pimg
Author: eggplants
Author-email: w10776e8w@yahoo.co.jp
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

# `pimg`

[![PyPI version](https://badge.fury.io/py/pimg.svg)](https://badge.fury.io/py/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

```bash
# First, crop or copy image on browser
# e,g) Cropping a screen:
# - Ubuntu: Shift+PrtScn
# - Windows: Win+Shift+S
# Then, to save the image in clipboard in local:
# pimg <name>.<extension>
$ pimg sth.png
$ file sth.png
sth.png: PNG image data, ...
```

## Usage

```bash
usage: pimg [-h] [-V] savefile

Save an image in clipboard

positional arguments:
  savefile       File name to save

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit
```

## license

MIT

## Author

haruna(eggplants)


