summaryrefslogtreecommitdiffstats
path: root/upload-image.sh
blob: 0cbd148fded8e9ab43e9c9b0582e2fa053c1a2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#/bin/bash
#----------------------------------------------------
# Version:       0.1.1
# Author:        Florian "Bluewind" Pritz <f-p@gmx.at>
#
# Copyright (C) 2008-2009 Florian Pritz
#
# Licensed under GNU General Public License v3
#   (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