Upload images to 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.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
imgbox_cli-0.0.1-py3-none-any.whl
(16.9 kB
view hashes)
Close
Hashes for imgbox_cli-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda8e711f1742133bfa82c0c9978c509e1a5871265cfeb9b6ae696ecc43a7558 |
|
MD5 | e1f707310251ef6ef117262cd45e77cf |
|
BLAKE2b-256 | c5a733b7b9d9a5ff331c7a8f2ab580fd4ae3455b2217e9026f768fc3e01f7c4e |