MCPcopy Index your code
hub / github.com/deadnews/imgup

github.com/deadnews/imgup @v4.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.0.3 ↗ · + Follow
176 symbols 374 edges 37 files 47 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

imgup

Upload images via APIs

Rust: Crates.io PyPI: Version AUR: version GitHub: Release CI: Main CI: Coverage

InstallationHostingsUsageEnv Variables

Installation

# PyPI
uv tool install images-upload-cli

# AUR
yay -S imgup-bin

Hostings

key: - none · ± optional · + required

host key return example
beeimg - https://beeimg.com/images/{id}.png
catbox - https://files.catbox.moe/{id}
fastpic - https://i120.fastpic.org/big/2022/0730/d9/{id}.png
gofile - https://gofile.io/d/{id}
imgbox - https://images2.imgbox.com/52/8c/{id}_o.png
kappa - https://kappa.lol/{id}.png
pixhost - https://img75.pixhost.to/images/69/{id}_img.png
sxcu - https://sxcu.net/{id}.png
imgur ± https://i.imgur.com/{id}.png
cloudinary + https://res.cloudinary.com/{cloud}/image/upload/{id}.png
filepost + https://cdn.filepost.dev/file/.../{id}.png
freeimage + https://iili.io/{id}.png
gyazo + https://i.gyazo.com/{id}.png
imageban + https://i2.imageban.ru/out/2022/07/30/{id}.png
imagekit + https://ik.imagekit.io/{id}/img_{id}.png
imgbb + https://i.ibb.co/{id}/image.png
imgchest + https://cdn.imgchest.com/files/{id}.png
imghippo + https://i.imghippo.com/files/{id}.png
imglink + https://imglink.cc/cdn/{id}.png
lensdump + https://i.lensdump.com/i/{id}.png
pixeldrain + https://pixeldrain.com/api/file/{id}
pixvid + https://pixvid.org/images/2022/07/30/{id}.png
postimages + https://i.postimg.cc/{id}/img.png
ptpimg + https://ptpimg.me/{id}.png
thumbsnap + https://thumbsnap.com/i/{id}.png
tixte + https://{domain}.tixte.co/r/{id}.png
uplio + https://upl.io/i/{id}.png
uploadcare + https://ucarecdn.com/{id}/img.png
vgy + https://i.vgy.me/{id}.png
zpic + https://zpi.cx/b/{id}.png

Usage

Usage: imgup [OPTIONS] <IMAGES>...

Arguments:
  <IMAGES>...  Image files to upload

Options:
  -H, --hosting <HOSTING>          Hosting service to use [default: imgur]
                                   [possible values: <hostings list from above>]
  -f, --format <FORMAT>            Output format for the links [default: plain]
                                   [possible values: plain, bbcode, html, markdown]
  -t, --thumbnail                  Create captioned thumbnails
  -n, --notify                     Send desktop notification on completion
      --no-clipboard               Disable copying the result to the clipboard
      --env-file <ENV_FILE>        Path to .env file. Overrides default config path
  -j, --jobs <JOBS>                Max concurrent uploads [default: 4]
  -v, --verbose...                 Increase verbosity (-v for info, -vv for debug)
  -h, --help                       Print help
  -V, --version                    Print version

Env Variables

CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
FILEPOST_KEY=
FREEIMAGE_KEY=
GYAZO_TOKEN=
IMAGEBAN_TOKEN=
IMAGEKIT_PRIVATE_KEY=
IMGBB_KEY=
IMGHIPPO_KEY=
IMGCHEST_KEY=
IMGLINK_KEY=
IMGUR_CLIENT_ID= # optional
LENSDUMP_KEY=
PIXELDRAIN_KEY=
PIXVID_KEY=
POSTIMAGES_KEY=
PTPIMG_KEY=
THUMBSNAP_KEY=
TIXTE_KEY=
UPLIO_KEY=
UPLOADCARE_KEY=
VGY_KEY=
ZPIC_KEY=

These can be set as environment variables or in a .env file:

  • Unix: ~/.config/imgup/.env
  • MacOS: ~/Library/Application Support/imgup/.env
  • Windows: C:\Users\<user>\AppData\Roaming\imgup\.env

Core symbols most depended-on inside this repo

parse_json
called by 28
src/upload/mod.rs
detect_format
called by 19
src/image.rs
create_test_png
called by 17
src/image.rs
response_text
called by 6
src/upload/mod.rs
get_env
called by 5
src/util.rs
get_config_path
called by 3
src/util.rs
upload
called by 3
src/upload/vgy.rs
make_thumbnail
called by 2
src/image.rs

Shape

Function 125
Class 47
Enum 2
Method 2

Languages

Rust100%

Modules by API surface

src/format.rs15 symbols
src/util.rs12 symbols
src/image.rs11 symbols
src/upload/imgbox.rs10 symbols
src/upload/gofile.rs10 symbols
tests/cli_test.rs8 symbols
src/upload/pixhost.rs5 symbols
src/upload/mod.rs5 symbols
src/upload/imgchest.rs5 symbols
src/main.rs5 symbols
src/upload/zpic.rs4 symbols
src/upload/tixte.rs4 symbols

For agents

$ claude mcp add imgup \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page