Capture screenshots, publish them to IPFS, and copy the link to the clipboard.
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore publish script Jul 4, 2015
LICENSE v1 Jul 4, 2015
README.md Fix second link Jul 10, 2018
install.sh v1 Jul 4, 2015
ipfs-screencap Merge pull request #12 from lgierth/gateway Sep 13, 2016
portable-screencap portable-screencap: quote mktemp argument Jul 4, 2015
publish.sh publish script Jul 4, 2015

README.md

ipfs-screencap and portable-screencap

Install

# with ipfs
ipfs get /ipfs/QmQgQYuzYRGdhNtfpLRQmL5jJfoxPnSuTzgwUJGjwcDays/ipfs-screencap
cd ipfs-screencap
./install.sh

# with git
git clone https://github.com/jbenet/ipfs-screencap
cd ipfs-screencap
./install.sh

portable-screencap

take a screencap and output to stdout, portably. Simply run:

portable-screencap

ipfs-screencap

Capture screenshots, publish them to IPFS, and copy the link to the clipboard.

Usage:

> ipfs-screencap -h
USAGE
  ./ipfs-screencap [OPTIONS] [<name>]
  publish a screenshot to ipfs, copy gateway link to clipboard

OPTIONS
  -h, --help     - display this help
  -v, --verbose  - print messages for the actions
  -p, --preload  - preload url on the gateways
  -c, --copy     - copy url to clipboard

Examples:

# default name based on date
> ipfs-screencap
https://ipfs.io/ipfs/QmfV9gpmi9yT4J4fWWJH2xdrAUYbmn3JYZPWCN5hsMnA9A/screencap.2015-07-04T01:21:00Z.png

# name argument
> ipfs-screencap laser-raptor.png
https://ipfs.io/ipfs/QmdCcY49eXipYJQpZL2yAuu2Jv8QbddJE2Zub3cfwc3aPz/laser-raptor.png

# copy to clipboard
> ipfs-screencap -c laser-raptor.png
https://ipfs.io/ipfs/QmdCcY49eXipYJQpZL2yAuu2Jv8QbddJE2Zub3cfwc3aPz/laser-raptor.png

# verbose
> ipfs-screencap -v hacking-too-much-time.png
capturing screen... QmRT4WfAYmt6EQmSWLNwjk9TU75ENV3JZum2PtGPq5V63R
constructing dir... Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg
copying url to clipboard... copied
https://ipfs.io/ipfs/Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg/hacking-too-much-time.png