Jump to content

Last 2 Imgur - Upload the last screenshot taken to Imgur + (delete and minify image)


Recommended Posts

This workflow uploads last screenshot that you took, to Imgur. It has options to minify the image (requires ImageOptim) and automatically delete the image after upload.

After uploading, direct link to the image is copied to clipboard.

 

FyCSOy5.png

 

 

# upload last screenshot to imgur without doing anything extra
last2imgur

# upload last screenshot to imgur and then delete it
last2imgur d

# minify last screenshot, upload to imgur and then delete it
last2imgur dm

# minify last screenshot and then upload to imgur
last2imgur m

 

Source: https://github.com/aviaryan/alfred-last2imgur

Download: Last 2 Imgur workflow file

 

Edited by aviaryan
Link to comment
  • 4 years later...

Hi, I'm getting 

[08:10:14.856] STDERR: Last 2 Imgur[Run Script] File '/Users/stooovie/DesktopScreenshot 2022-03-02 at 8.05.45.jpg' doesn't exist; skipping

There's some kind of typo in the script, the path is obviously missing a forward slash between "Desktop" and "Screenshot". I'm not a dev and can't fix this myself, what to do? Thanks.

Link to comment
On 3/2/2022 at 7:12 AM, Stooovie said:

and can't fix this myself

 

I beg to differ! You correctly identified the problem and the solution, so you can do it. Someone else also found it and submitted a fix, but it was never included. Here’s what you have to do:

  • In Alfred, right-click the Workflow → Open in Finder.
  • Open the getfile.sh file in TextEdit.
  • Make these changes. You’ll remove a / on line 6 and add one on line 11, do you see it?
  • Save the file. You should now have a working Workflow, assuming that’s the only issue.
Link to comment
  • 2 weeks later...
On 3/7/2022 at 2:55 PM, vitor said:
  • In Alfred, right-click the Workflow → Open in Finder.
  • Open the getfile.sh file in TextEdit.
  • Make these changes. You’ll remove a / on line 6 and add one on line 11, do you see it?
  • Save the file. You should now have a working Workflow, assuming that’s the only issue.

It worked for me. Thank you !

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...