Skip to content

xiaoyuxie-vico/oss_uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload image to Ali OSS in Alfred. (使用Alfred上传图片到阿里OSS)

passing version python

The oss_uploader is an Alfred Workflow plugin for uploading images to Ali OSS.

demo

Demo in Youtube

1. Download

You can download the latest version in Github releases page.

2. Usage

2.1 Set the basic config in setting.py

You should set your own information in these codes:

# Define Global Variables
UPDATE_SETTINGS = {'github_slug': 'xiaoyuxie-vico/oss_uploader'}
HELP_URL = 'https://github.com/xiaoyuxie-vico/oss_uploader/issues'

# oss info
OSS_INFO = {
    'access_key_id': 'your_access_key_id',
    'access_key_secret': 'your_access_key_secret',
    'bucket_name': 'your_bucket_name',
    'endpoint': 'http://oss-cn-XXX.aliyuncs.com',
}

# tinyjpg.com API
TINIFY_KEY = 'your_tinify_key'

2.2 General Search

Try keyword oss image_name to upload.

3. Functions (updating)

  • Upload clipboard image data to Ali OSS (v1.0.1);
  • Rename the image name before upload (v1.0.1);
  • Reduce the image size before upload (Using TinyJPG) (v1.0.2);
  • [TODO] Upload the local image (single or in batch);
  • [TODO] Fix rename image error;

Acknowledgement

This Alfred Workflow plugin is developed based on deanishe/alfred-workflow and TooSchoolForCool/LeetCode-Search. Thanks for this great helper library.

About

通过Alfred上传图片到阿里oss

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages