bluegill/katana

Upload after screenshot editor

AlecRust opened this issue · 3 comments

I'm trying to replace mac2imgur with an equivalent tool that will automatically upload a screenshot taken in any way on macOS.

Katana doesn't seem to look for any new screenshot that is saved to the screenshots directory and upload it. Instead it offers one shortcut that can be configured.

I've changed macOS's default "select part of screen" command+shift+4 shortcut to something else so I can set it in Katana settings (not sure why it says space):

Screenshot 2020-05-02 at 12 29 58

Now when I use command+shift+4 and select a part of the screen, it instantly uploads to Imgur without showing the macOS screenshot editor for annotating before upload.

Is it possible to only trigger the upload after the screenshot has been edited, like mac2imgur's behaviour?

Better yet, I'd prefer to use all of macOS's default screenshot shortcuts (capture window, capture screen etc.) with Katana just handling the upload part.

Katana and mac2imgur are not been mantained anymore. Partly because Imgur makes it supper hard to make this possible. I am working an a solution to this problem, at the moment it do no support Imgur because of the restrictions it imposes, but will be supported in the future, check it out:
https://github.com/mariogarridopt/Saphira/releases/tag/v1.0.0

@mariogarridopt thanks for the info! Be great if you had some screenshots of Saphira ;)

Want me to create an issue to follow for Imgur support?

I'd be happy to switch image services if there's a better alternative. I don't see what providers Saphira supports..?

Hi @AlecRust ! I did not provide screenshots because the app is straightforward, it is only on the bar. There is no preferences panel yet. If you raise an issue about this we can discuss what we should show on the screenshot.

To talk about Imgur we need to lay down some basic info first:
For us to send images to the image host using their API we need a token to authenticate to their API's. Katana or Saphira ships with tokens managed by the owners of the projects. This is because we want you to just install the app and start using it. If we did not provide a token with the app you would have to go to the image host, set up an app, get the token, and somehow put it on the app.

The problem is that now Imgur has a limit of images you can send by a user per day. And a user is identified by a token.
So if I ship the app with an Imgur token, there will always be a limit of images all users together can upload. For example, if at 8AM I submit 50 images, at 9AM you might now be able to send any more images because I used all the token available uploads.

Mainly because of this, Saphira is shipping with vgy.me as the default image host. The way they deal with uploads its better, they have upload limits (as every image host do), but they limit by IP, not by user token.

But I understand that Imgur is and probably will always be a beloved Image host provider, so I am planning on providing Imgur support in the future as an option. Because of the problems referred to above, I might have to ask the user for a token if he chose to use Imgur as the provider. But this is future talk, Imgur is not supported at the moment.

At the moment Saphira is not better than Katana, because it has fewer options:

  • Shortcuts are not customizable;
  • Image hosts are defined and are not changeable;
  • There is no support for URL shortening;

But, it's a recent project, I will keep working on It and maybe we can get some extra contributors to boost the development.