GitHub - xiaohk/clip2imgur: A simple macOS command line tool for uploading your screenshots from clipboard to Imgur (original) (raw)

A simple macOS command line tool for uploading your screenshots from clipboard to Imgur

Github Actions Status License pypi DOI

Usage

In default setting, the URL of posted image will be copied to your clipboard. You can use flags to configure it.

$ clip2imgur --html
$ clip2imgur -n
short long description
-m --markdown URL will be copied in the Markdown image format.[](https://i.imgur.com/x.png)
-t --html URL will be copied in the HTML image format.
-n --notcopy Your image URL will not be copied to your clipboard
-a --anon Post the image anonymously

Personally I like to include images in Markdown file using the HTML format, which gives more control of the display. If you forget these flags, you always can run clip2imgur -h to check the usage.

Change Log

Install

This package is built using cross-platform Swift with Swift Package Manager (SPM), but it currently only supports macOS. There are three ways to installclip2imgur.

Homebrew

Using Homebrew is the recommended and also the easiest way to get clip2imgurinstalled on your mac. If you don't have Homebrew installed, you can simply run:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then, to install clip2imgur:

$ brew tap xiaohk/clip2imgur
$ brew install clip2imgur

PyPI

If you are familiar with Python, you can install clip2imgur with pip.

Built With

The latest version (>=v0.9.1) uses Python.

The first version (v0.9.0) was built with: