返回顶部
g

github-image-hosting

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,048
下载量
0
收藏
概述
安装方式
版本历史

github-image-hosting

# Image Upload for GitHub Upload an image to img402.dev's free tier and embed the returned URL in GitHub markdown. ## Quick reference ```bash # Upload (multipart) curl -s -X POST https://img402.dev/api/free -F image=@/tmp/screenshot.png # Response # {"url":"https://i.img402.dev/aBcDeFgHiJ.png","id":"aBcDeFgHiJ","contentType":"image/png","sizeBytes":182400,"expiresAt":"2026-02-17T..."} ``` ## Workflow 1. **Get image**: Use an existing file, or capture a screenshot: ```bash screencapture -x /tmp/screenshot.png # macOS — full screen screencapture -xw /tmp/screenshot.png # macOS — frontmost window ``` 2. **Verify size**: Must be under 1MB. If larger, resize: ```bash sips -Z 1600 /tmp/screenshot.png # macOS — scale longest edge to 1600px ``` 3. **Upload**: ```bash curl -s -X POST https://img402.dev/api/free -F image=@/tmp/screenshot.png ``` 4. **Embed** the returned `url` in GitHub markdown: ```markdown ![Screenshot description](https://i.img402.dev/aBcDeFgHiJ.png) ``` ## GitHub integration Use `gh` CLI to embed images in PRs and issues: ```bash # Add to PR description gh pr edit --body "$(gh pr view --json body -q .body) ![Screenshot](https://i.img402.dev/aBcDeFgHiJ.png)" # Add as PR comment gh pr comment --body "![Screenshot](https://i.img402.dev/aBcDeFgHiJ.png)" # Add to issue gh issue comment 123 --body "![Screenshot](https://i.img402.dev/aBcDeFgHiJ.png)" ``` ## Constraints - **Max size**: 1MB - **Retention**: 7 days — suitable for PR reviews, not permanent docs - **Formats**: PNG, JPEG, GIF, WebP - **Rate limit**: 1,000 free uploads/day (global) - **No auth required** ## Tips - Prefer PNG for UI screenshots (sharp text). Use JPEG for photos. - If a screenshot is too large, reduce dimensions with `sips -Z 1600` before uploading. - When adding to a PR body or comment, use `gh pr comment` or `gh pr edit` with the image markdown. ## Paid tier For permanent images (1 year, 5MB max), use the paid endpoint at $0.01 USDC via x402. See https://img402.dev/blog/paying-x402-apis for details.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-image-hosting-1776420048 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-image-hosting-1776420048 技能

通过命令行安装

skillhub install github-image-hosting-1776420048

下载 Zip 包

⬇ 下载 github-image-hosting v1.0.0

文件大小: 1.87 KB | 发布时间: 2026-4-17 18:25

v1.0.0 最新 2026-4-17 18:25
- Initial release: upload images to img402.dev for easy embedding in GitHub PRs, issues, and comments.
- Supports free uploads under 1MB, with images persisting for 7 days and no authentication required.
- Includes shell workflow for capturing, resizing, uploading images, and embedding returned URLs in markdown.
- Integration examples provided for adding images to GitHub via `gh` CLI.
- Documents constraints: supported formats, upload limits, and retention policy.
- Notes on paid tier for permanent, larger images.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部