Skip to content

Instantly share code, notes, and snippets.

@cemre
Created December 28, 2012 22:29
Show Gist options
  • Save cemre/4402564 to your computer and use it in GitHub Desktop.
Save cemre/4402564 to your computer and use it in GitHub Desktop.
Save an area on the screen as a non-retina screenshot, put it in dropbox, paste URL in clipboard. Make a service using these instructions: http://blog.lanceli.com/2012/08/downscale-screenshot-at-hight-resolution-on-retina-mackbook-pro.html
# the path where screenshots to save
SS_PATH="/tmp"
# a variable of unix timestamp for screenshot file name
NOW=$(date +%s)
# execute screen capture command, screenshot$NOW.png is the name of file
screencapture -i -r $SS_PATH/[email protected]
# then downscale the high resolution screenshot to 50%
/usr/local/bin/convert $SS_PATH/[email protected] -resize 50% /Users/cemre/Dropbox/Public/Screenshots/screenshot$NOW.png
echo "https://dl.dropbox.com/u/811105/Screenshots/screenshot$NOW.png" | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment