summaryrefslogtreecommitdiffstats
path: root/upload-image.sh
blob: 8d516f1690c4115a58497c28b11c123c4c7a9652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#/bin/bash
#----------------------------------------------------
# Version:       0.1.1
# Author:        Florian "Bluewind" Pritz <f-p@gmx.at>
#
# Licensed under WTFPL v2
#   (see COPYING for full license text)
#
#----------------------------------------------------
# Upload image to imagebanana and output url
#----------------------------------------------------

curl -F img="@$1" -F "send=Hochladen" -F 'resize=320x240' -H "Expect: " www.imagebanana.com -L | ack -o -n '(http.*?\/view\/.*?\..{3})' | tail -n 1