You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

pimg

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pimg

Save an image in clipboard


Maintainers
1

Readme

pimg

PyPI version

pre-commit.ci status

  • 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
  • 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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc