Command line interface for sharing images on imgbox.com
Project description
CLI tool for uploading images to https://imgbox.com/.
Usage
$ imgbox foo.jpg bar.png --title "My Gallery" --thumb-width 500
$ imgbox --thumb-width 123 < list_of_file_paths.txt
$ generate_file_paths | imgbox --json | jq -r ".[].image_url"
BBcode
while read image; do
success=$(jq -r '.success' <<< "$image")
if [ "$success" != 'true' ]; then
error="$(jq -r '.error' <<< "$image")"
filename="$(jq -r '.filename' <<< "$image")"
echo "$filename: $error" >&2
else
image_url=$(jq -r '.image_url' <<< "$image")
thumbnail_url=$(jq -r '.thumbnail_url' <<< "$image")
echo "[url=$image_url][img]$thumbnail_url[/img][/url]"
fi
done <<< $(imgbox --json "$@" | jq -c '.[]')
Installation
$ sudo apt install pipx
$ pipx install --upgrade imgbox-cli
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imgbox-cli-0.0.3.tar.gz
(19.6 kB
view hashes)
Built Distribution
imgbox_cli-0.0.3-py3-none-any.whl
(21.1 kB
view hashes)
Close
Hashes for imgbox_cli-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93eef84836542d7757a4d63049930c1b89f567ba9979b1a61406ee3b7f21c45b |
|
MD5 | fa5f45c4424e210f169341d493807b09 |
|
BLAKE2b-256 | 603408dda40cccaeb643e60bc5147e13d65950e04cd8ec310071b780eeafe888 |