Skip to main content

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


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 details)

Uploaded Source

Built Distribution

imgbox_cli-0.0.3-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file imgbox-cli-0.0.3.tar.gz.

File metadata

  • Download URL: imgbox-cli-0.0.3.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for imgbox-cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d81aa5503836030626fbf54f2a533ce0bab7c05780b34c257a329a608f9c5f74
MD5 481210141dcf8e4bdaf3e1c673f88a08
BLAKE2b-256 1bbdc938e6f053bf3c719eb9cff2938edde15be378ac9eb5f656db5fea344ded

See more details on using hashes here.

File details

Details for the file imgbox_cli-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: imgbox_cli-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for imgbox_cli-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 93eef84836542d7757a4d63049930c1b89f567ba9979b1a61406ee3b7f21c45b
MD5 fa5f45c4424e210f169341d493807b09
BLAKE2b-256 603408dda40cccaeb643e60bc5147e13d65950e04cd8ec310071b780eeafe888

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page