screenshot (2)

Gnome Shell Screenshot + Imgur

The old gnome-screenshot was a very useful app. Unfortunately it seems to have been dropped in the latest gnome shell. I found this extension that does a similar job though. It’s called  Area Screenshot and you can find the code via github

Looking at the Advanced Usage note it seems that the developer added a hook that allows users to run a program after the screenshot has been taken. I used that to upload screenshots automatically to You will need to download the Bash Script Uploader and save it somewhere accessible as an executable. Then create the following script in ~/bin/area-screenshot-post

url=`imgur "$1"`
notify-send --hint=int:transient:1 "Screenshot Uploaded" "Copied URL to clipboard:\n$url"

You will get the url in the notification area.

Similar Posts:

Site ScreenShot Part 2 – Planning

I was having a little conversation with my friend Ghassan from LebanonDesign and he mentioned his company was actually using something similar to SiteScreenShot to generate thumbnails for their different websites. So I thought I could scale my code to do the same. Of course, plenty of changes should be considered:

  • Snapshot generation currently takes 3-5 seconds to complete. So I need to do 2 things:
    • Tell the user that the app is actually working on generating the snapshot
    • Provide a way to retrieve the pic once the snapshot is generated
    • Make things go faster if possible
  • Getting more users means more load on the server, what should we use?
    • Replace Apache with Nginx for faster static file delivery
    • Use a queue manager like Celery/RabbitQM to distribute the load

I’m currently testing some code with django-celery and I’ll try to post more information here (so I can remember what I’m doing)

Also on my list is making the site accessible via a simple API.

I also need to research a better way to take the screenshots on a headless server.


Similar Posts: