added integrations and updated readme

This commit is contained in:
Chris
2020-01-13 01:01:56 +01:00
parent 3a27592d58
commit b149fe88cb
2 changed files with 44 additions and 11 deletions

View File

@@ -25,13 +25,13 @@
Table of contents
=================
* [Features](#features)
* [Installation](/rtfm/INSTALL.md)
* [Configuration](/rtfm/CONFIG.md)
* [Docker](/rtfm/DOCKER.md)
* [API](/rtfm/API.md)
* [Addons/Integration](/rtfm/INTEGRATIONS.md)
* [Development status](#development-status)
* [Features](#features)
* [Addons and integration](/rtfm/INTEGRATIONS.md)
* [Development roadmap](#development-roadmap)
---
@@ -44,13 +44,6 @@ Table of contents
- Added WebP to images (and conversion from jpg,png to webp)
- Massive code rework. Actually we designed it from the ground up to be more modular and easier to debug
## Breaking changes in v2
- [New API system](/rtfm/API.md). Only single file uploads now via /api/upload.php (POST var name is "file"). [read more..](/rtfm/API.md)
- Data directory renamed from ```upload``` to ```data```
- Backblaze support dropped for now because we didn't need it anymore as ALT_FOLDER is more flexible. If someone needs it, it can easily be implemented via adding a new storage controller. We're happy to accept pull requests
- Dropped support for legacy URLs (/thumbs/1024x768_d8c01b45a6.png cant be used anymore, should be /1024x768/d8c01b45a6.png)
# Features
- Selfhostable

View File

@@ -4,3 +4,43 @@
- Chrome Browser extension: https://chrome.google.com/webstore/detail/pictshare-1-click-imagesc/mgomffcdpnohakmlhhjmiemlolonpafc
- Source: https://github.com/chrisiaut/PictShare-Chrome-extension
- Plugin to upload images with ShareX: https://github.com/ShareX/CustomUploaders/blob/master/pictshare.net.sxcu
# Upload from CLI
Requirements:
- curl (apt-get install curl)
- jq (apt-get install jq)
```bash
#!/bin/bash
# filename: pictshare.sh
# usage: ./pictshare.sh /path/to/image.jpg
result=$(curl -s -F "file=@${1}" https://pictshare.net/api/upload.php | jq -r .url)
echo $result
```
# Screenshot to pictshare (linux)
This script will create a screenshot (you can choose the area), uploads it to PictShare, copies the raw image to your clipborad and opens the image on PictShare in Chrome
Requirements:
- curl (apt-get install curl)
- jq (apt-get install jq)
- screenshooter (apt-get install xfce4-screenshooter)
```bash
#!/bin/bash
# filename: screenshot2pictshare.sh
# usage: ./screenshot2pictshare.sh
if [[ $# -eq 0 ]] ; then
xfce4-screenshooter -r -o $0
exit 0
fi
result=$(curl -s -F "file=@${1}" https://pictshare.net/api/upload.php | jq -r .url)
xclip -selection clipboard -t image/png -i $1
google-chrome $result
```