Page 1 of 1

upload image to imm.io imagehost

Posted: Tue 01 Oct 2013, 14:37
by stu91
here is a super simple script to upload an image to http://www.imm.io image host - just past into a bash script and run in terminal - Enter image path and it will upload and output a web link for sharing.
Image

Code: Select all

#!/bin/sh
 
 read -p "Enter Image: " IMAGE
 curl -s -F "image=@$IMAGE" imm.io/store | tr "," "\n" | awk -F"\"" '/uri/{print $4}'