An open API service indexing awesome lists of open source software.

https://github.com/urre/alfredinary

Take a screenshot, upload it to Cloudinary. Get back https image link to clipboard.
https://github.com/urre/alfredinary

alfred cloudinary workflow

Last synced: 8 months ago
JSON representation

Take a screenshot, upload it to Cloudinary. Get back https image link to clipboard.

Awesome Lists containing this project

README

          

# Alfredinary

Alfred 👉 Take Screenshot 👉 Cloudinary 👉 Clipboard

## Features

This workflow provides this in a single command:

1. Take screenshot on your mac
2. Upload it to [Cloudinary](https://cloudinary.com)
3. Get back the https image link in your clipboard
4. Paste and use! cmd ⌘+V

## Why?

- Quickly share screenshots
- No need to store the files on your computer if you don't want.
- Https image links
- Secure
- All the benefits from Cloudinary. Image management, image management transformations (ex via URL parameters), cloud storage, fast delivery via CDN.

## Install

1. Install the npm package

```bash
npm install -g alfredinary
```

2. Create env-file. When installed, open up Alfred Workflows and right click to open the workflow directory in Terminal/finder. Create an `.env` file in the project root. You can rename `.env-example` to `.env`. Edit `PATHNAME` AND `FILENAME` as you wish.

```bash
CLOUDNAME="XXXXX"
APIKEY="XXXXXXXXXXXX"
APISECRET="XXXXXXXXXXXX"
PATHNAME="/users/myusername/Pictures/screenshots/"
FILENAME="screenshot.jpg"
FOLDERNAME="/alfred"
```

Get cloudname, apikey and apisecret from your account on [Cloudinary](https://cloudinary.com). Don't have an account? Get one. It's free.

3. Edit temp location (pathname and filename) of the screenshot on disk. The default is `/users/${username}/Pictures/screenshots/screenshot.jpg`

Edit the yellow bash script in the image below.

Workflow

## Use

1. Open up Alfred and type "Alfredinary". Or just begin typing "Alfredi..", or "Alf..." + Enter

Alfred

2. Take a screenshot as usual, mark section of your screen or use Space to select the current window.

3. Alfredinary now uploads that screenshot to your Cloudinary account, and you will get back a https image link.

4. cmd ⌘+V

![Cloudinary](https://cloud.githubusercontent.com/assets/307676/19523739/b9d18f78-961b-11e6-96ff-49bedaf8b690.jpg)