Skip to content

This is an Alfred workflow that helps you upload image in clipboard or local to Oracle Object Storage

Notifications You must be signed in to change notification settings

PatelUtkarsh/Alfred-Workflow-Upload-Screenshot-Oracle

 
 

Repository files navigation

Alfred Workflow: Upload Screenshot to Oracle Object Storage

This workflow helps you upload screenshot in your clipboard or local disk to oracle object-storage using s3 compatible API and put the public url of the image to your clipboard.

Overview

This workflow is written in Python and used Boto3 as AWS client to upload files.

Upload clipboard image directly or upload a file.

Services used

  1. Oracle object-storage for hosting. Oracle offers always free 10gb object-storage which is plenty.
  2. Tinypng for screenshot compression. Helps reduceing screenshot size drastically and save bandwidth for end-users. (optional)
  3. Cloudfront for proxying object-storage url to make smaller url. (optional)

Sample url when fully configured: https://s.utkarshpatel.com/video-placeholder-hinP7.png

Demo

Watch the video

Download

https://github.com/PatelUtkarsh/Alfred-Workflow-Upload-S3/releases

Usage

Check https://www.ateam-oracle.com/aws-s3-to-oci-access-best-practices on how to get environment variables.

Config Environment Variables:

Note 🗒️: when tinypng_api_key is set, it will compress original image and replace it before uploading to object storage.

Upload image from clipboard in alfred type:

upload

Upload any file from local:

TinyPng will compress png, webp and jpg images.

upload TYPE-FILENAME-HERE

Issue with python 2?

Read setup guide at https://www.alfredapp.com/help/kb/python-2-monterey/

Forked source: 🙌

About

This is an Alfred workflow that helps you upload image in clipboard or local to Oracle Object Storage

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.0%
  • Other 1.0%