https://github.com/jbenet/ipfs-screencap
Capture screenshots, publish them to IPFS, and copy the link to the clipboard.
https://github.com/jbenet/ipfs-screencap
Last synced: 3 months ago
JSON representation
Capture screenshots, publish them to IPFS, and copy the link to the clipboard.
- Host: GitHub
- URL: https://github.com/jbenet/ipfs-screencap
- Owner: jbenet
- License: mit
- Created: 2015-07-04T11:32:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T20:55:15.000Z (over 7 years ago)
- Last Synced: 2025-08-17T08:40:07.278Z (3 months ago)
- Language: Shell
- Homepage: http://ipfs.io
- Size: 14.6 KB
- Stars: 49
- Watchers: 6
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ipfs - ipfs-screencap - Capture screenshots, publish them to IPFS, and copy the link to the clipboard. (Tools)
- awesome-ipfs-cn - ipfs-screencap - 捕捉截图,将它们发布到 IPFS,并将链接复制到剪贴板. (工具)
README
# ipfs-screencap and portable-screencap
- [`portable-screencap` - take a screencap and output to stdout (portable)](portable-screencap)
- [`ipfs-screencap` - take a screencap and publish it to](ipfs-screencap) [IPFS](https://ipfs.io)
## Install
```sh
# 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](https://ipfs.io), and copy the link to the clipboard.
Usage:
```sh
> ipfs-screencap -h
USAGE
./ipfs-screencap [OPTIONS] []
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:
```sh
# 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
```