← 返回
未分类 Key 中文

Easyimage uploader

Upload local image files to an EasyImages 2.0 service and return the hosted image URL. Use when the user asks to upload an image, host a picture, put a local...
将本地图片上传至 EasyImages 2.0 服务并返回托管图片的 URL。适用于用户请求上传图片、托管图片或放置本地图片等场景。
fm7077 fm7077 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 305
下载
💾 0
安装
1
版本
#latest

概述

easyimage-uploader

Upload a local image to an EasyImages 2.0 server, then return the hosted image URL.

Configuration priority

Resolve configuration in this order:

  1. CLI flags: --server and --token
  2. Skill-local config file: config.json
  3. Environment variables fallback:
    • EASYIMAGE_URL
    • EASYIMAGE_TOKEN

Recommended setup: create config.json in the root of this skill.

Example:

{
  "server": "https://img.example.com",
  "token": "your-easyimage-token",
  "allow_model_image_input": false,
  "temp_dir": "./temp"
}

A template file is included as config.example.json.

Config fields

  • server: EasyImages service base URL
  • token: EasyImages upload token
  • allow_model_image_input: whether upload requests are allowed to rely on model-side image understanding
  • false: prefer direct file-path upload only, avoid image analysis, avoid vision tool usage
  • true: model-side image handling is allowed when needed
  • temp_dir: temp working directory for this skill
  • default recommended value: ./temp
  • relative paths are resolved relative to this SKILL.md / skill root directory
  • with the default, the effective directory is easyimage-uploader/temp/

If configuration is missing, stop and ask the user for the missing value.

Workflow

  1. Confirm which local image file should be uploaded.
  2. Read references/api.md if you need the exact upstream API shape or status meanings.
  3. Read config.json when behavior matters.
  4. If allow_model_image_input is false, do not use image analysis or vision tools just to understand image content. Treat the image as a file and upload by path only.
  5. Use temp_dir for temporary files when downloads, conversions, or intermediate storage are needed. If the directory does not exist, create it first.
  6. Prefer absolute paths for both the script and the image file. Do not rely on ~ expansion in generated commands. Safe default:
python3 /absolute/path/to/skills/easyimage-uploader/scripts/upload_easyimage.py /absolute/path/to/image
  1. If needed, point to a specific config file with an absolute path:
python3 /absolute/path/to/skills/easyimage-uploader/scripts/upload_easyimage.py /absolute/path/to/image \
  --config /absolute/path/to/config.json
  1. If needed, override with explicit CLI values:
python3 /absolute/path/to/skills/easyimage-uploader/scripts/upload_easyimage.py /absolute/path/to/image \
  --server https://img.example.com \
  --token YOUR_TOKEN
  1. The bundled script normalizes ~ and relative paths for the image and config arguments, but still prefer absolute paths in examples and real executions to avoid shell-specific surprises.
  2. Parse the JSON output.
  3. If ok is true, return the url to the user. Mention thumb only if useful.
  4. Do not expose delete_url unless the user explicitly asks for deletion capability.
  5. If upload fails, explain the likely cause using the code or error payload.

Failure handling

When the script returns a failure payload:

  • network_error: server unreachable, DNS/TLS/network problem, or timeout
  • http_error: server returned a non-2xx HTTP response
  • invalid_json: server responded unexpectedly
  • EasyImages code values should be interpreted using references/api.md

Common user-facing explanations:

  • 202: server-side upload quota reached
  • 205: current client is blocked by EasyImages allow/deny rules
  • 401: server requires login uploads instead of token-only uploads
  • 403: token invalid or signature check failed
  • 406: file type rejected

Notes

  • Use this skill for local files that already exist on disk.
  • If the user only gives a remote URL and wants it mirrored, download it first only if appropriate and allowed.
  • Prefer returning the direct image url as the main result.
  • Keep secrets safe. Never echo the configured token back to the user.
  • config.json contains secrets. Keep file permissions tight and avoid committing it to public repositories.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 23:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 435 📥 118,075
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 137 📥 53,261
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 335 📥 94,848