summaryrefslogtreecommitdiffstats
path: root/upload-image.sh
blob: 6ee9bb1450c377c48d18ad240964958bea0d90e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#/bin/bash
#----------------------------------------------------
# Version:       0.1.1
# Author:        Florian "Bluewind" Pritz <flo@xssn.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