Copy the URL of the first image found on a webpage to your clipboard, from the command line (on systems that include pbcopy
). Intended for use with CloudApp URLs, but will work on any page.
NOTE: Immediately after writing this I learned that you could just append /image.png
instead, so just do this:
echo `pbpaste`"/image.png" | pbcopy
Run the following command. When it completes, the direct image URL will be copied to your clipboard.
node climg.js http://cl.ly/image/3F0r2m16342h
Available for use under the MIT license: http://bryan.mit-license.org