Skip to main content

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

Metadata

Release files for imgbox-cli 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imgbox-cli 0.0.3
File Size Uploaded
imgbox-cli-0.0.3.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imgbox-cli 0.0.3
File Interpreter ABI Platform
imgbox_cli-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 40.7 kB

Release files / imgbox-cli-0.0.3.tar.gz

Download URL imgbox-cli-0.0.3.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d81aa5503836030626fbf54f2a533ce0bab7c05780b34c257a329a608f9c5f74
BLAKE2b-256 checksum
How to use checksums
1bbdc938e6f053bf3c719eb9cff2938edde15be378ac9eb5f656db5fea344ded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / imgbox_cli-0.0.3-py3-none-any.whl

Download URL imgbox_cli-0.0.3-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93eef84836542d7757a4d63049930c1b89f567ba9979b1a61406ee3b7f21c45b
BLAKE2b-256 checksum
How to use checksums
603408dda40cccaeb643e60bc5147e13d65950e04cd8ec310071b780eeafe888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page