Jump to content
vitor

WebScreenshot — Take screenshots directly to the web

Recommended Posts

Take screenshots with a keyboard shortcut and upload them directly to imgur. Will produce both a sound and a visual notification when done, and copy the resulting direct link to your clipboard.

 

yNGbOlw.png


You may also upload an image (or pdf — imgur supports it as an upload but converts to png) by picking the Upload Screenshot File Action.


uploadscreenshotclipboard will upload the image in your clipboard.


recentscreenshots will enumerate recently taken screenshots, ordered from the last. You can then open them in the browser to view (↵), delete (⌘↵), copy (⌥↵), or preview (⇧).


Download | Source

Edited by vitor

Share this post


Link to post

Update.

There are now two extra options. They do the same as before, except they resample the images before upload (useful if you’re using a retina screen).

Share this post


Link to post

Vitor,

 

WebScreenshot was working perfectly, but today whenever I've taken a screenshot the workflow breaks down. Here is the debug log from Alfred:

 

Starting debug for 'WebScreenshot'

 
[ERROR: alfred.workflow.action.script] ./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found
./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found
./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found
 
Can you please advise what's going on? 
 
Thanks!

Share this post


Link to post

I’ve noticed that today as well. It seems the issue was with one of the automatically updated tools, whose bug was preventing it to be updated further.

 

Download it again (now at a later version), and it should work.

Share this post


Link to post

I have a very dumb question. When using the workflow I get links like this:

 

file:///Users/usuario/Desktop/Screen%20Shot%202016-07-25%20at%2017.04.24.png

 

How can I manage to get a imgur direct link to post the image in this forum? What am I missing?

Share this post


Link to post

juliosecco There’s no way to upload to a specific account. I just looked into it, and I don’t intend to add the option to do it. Reason being it can’t be completely automated. It will require manual labour on the user’s side (manually registering a new application with imgur and getting an API key) and that’s a bad experience on the user’s side, and one I wouldn’t be improving on since I don’t have an account.

I will consider a PR if it’s well done and takes user experience into account, though.

Share this post


Link to post

xilopaint open the debugger, and post the output.

 

 

Starting debug for 'WebScreenshot'

 

[2016-07-28 12:36:13][ERROR: action.script] ./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found

./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found

dyld: warning, LC_RPATH ~/Library/Frameworks in /Library/Audio/Plug-Ins/Components/Flip4Mac WMA Import.component/Contents/MacOS/Flip4Mac WMA Import being ignored in restricted program because it is a relative path

./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found

Share this post


Link to post

Starting debug for 'WebScreenshot'

 

[2016-07-28 12:36:13][ERROR: action.script] ./_licensed/imgur-screenshot/imgur-screenshot.sh: line 113: terminal-notifier: command not found

I too see the error, but indeed the workflow is working, the snapshot is loaded and in the clipboard I have the link...

 

another strange thing is that my error message is slightly different from yours:

 

./_licensed/imgur-screenshot/imgur-screenshot.sh: line 114: terminal-notifier: command not found

Share this post


Link to post
The terminal-notifier error is expected (I should silence that one), as the notification is handled differently. The issue in xilopaint’s case is playing the sound.

 

My terminal-notifier error is also on line 114, so it seems you might be using a different version, xilopaint. What macOS version are you on?

Edited by Vítor

Share this post


Link to post

 

The terminal-notifier error is expected (I should silence that one), as the notification is handled differently. The issue in xilopaint’s case is playing the sound.
 
My terminal-notifier error is also on line 114, so it seems you might be using a different version, xilopaint. What macOS version are you on?

 

 

10.11.6

Share this post


Link to post

Hello All

 

I'm starting with Alfred workflows but frequently has used WebScreenshot.

Not sure what happened last days, but it stopped to work (no link copied into clipboard) and got following debug log:

Quote

Starting debug for 'WebScreenshot'

 

[2016-09-21 14:06:25][ERROR: action.script] ./_licensed/imgur-screenshot/imgur-screenshot.sh: line 114: terminal-notifier: command not found

./_licensed/imgur-screenshot/imgur-screenshot.sh: line 114: terminal-notifier: command not found

./_licensed/imgur-screenshot/imgur-screenshot.sh: line 114: terminal-notifier: command not found

 

I have updated into last version, restarted the app but no result.

 

Any advice ?

 

 

Share this post


Link to post

Update.

 

Fixes the problem Heniek reported. In addition, a link to delete the uploaded image will also be produced and saved to /tmp/webscreenshot_latest_upload_delete_url.txt. This file will be overwritten on every usage.

 

To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.

Share this post


Link to post

Update.

 

Better handling of URLs. Copied URL will no longer have trailing newline. Delete URLs will be appended to the file instead of overwritten and will be accompanied by the date and time they were taken, to help identify them.

 

To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...