Image
生成和处理图像内容的基础功能模块
Core functionality module for generating and processing image content
clawhub install image检查图像DPI分辨率,确保设计素材符合输出质量标准
Check image DPI resolution to ensure design assets meet output quality standards
# 安装 Skill(会下载 SKILL.md 到 .claude/skills/) clawhub install dpi-upscaler-checker # 之后直接对 Claude 说"用 Dpi Upscaler Checker 帮我…"即可
# 同样的安装命令,兼容所有支持 SKILL.md 的 AI 编程工具 clawhub install dpi-upscaler-checker
此 Skill 兼容 OpenClaw 标准。 安装后自动生成 SKILL.md 文件,任何支持 OpenClaw 协议的 AI Agent(Claude Code、Cursor、Windsurf 等)均可直接调用。
完全本地处理,无需 API 或 GPU,开箱即用
python scripts/main.py check --input image.jpg
python scripts/main.py check --input ./images/ --output report.json
python scripts/main.py upscale --input image.jpg --output upscaled.jpg --scale 4
python scripts/main.py upscale --input ./images/ --output ./output/ --min-dpi 300 --scale 2
--input | string | - | Yes | Input image path or folder |
| --output | string | stdout | No | Output report path |
| --target-dpi | int | 300 | No | Target DPI threshold |--input | string | - | Yes | Input image path or folder |
| --output | string | - | Yes | Output path |
| --scale | int | 2 | No | Scale factor (2/3/4) |
| --min-dpi | int | - | No | Only process images below this DPI |
| --denoise | int | 0 | No | Denoise level (0-3) |
| --face-enhance | flag | false | No | Enable face enhancement |{
"file": "image.jpg",
"dpi": [72, 72],
"width_px": 1920,
"height_px": 1080,
"print_width_cm": 67.7,
"print_height_cm": 38.1,
"meets_300dpi": false,
"recommended_scale": 4.17
}
<original_filename>_upscaled.<extension>Actual DPI = Pixel dimensions / Physical dimensions
Print size (cm) = Pixel count / DPI * 2.54
# Python dependencies
pip install -r requirements.txt
clawhub dpi-upscaler-checker --image ./marketing-banner.png --output-report dpi-report.json图像托管:将图像上传到 img402.dev 获取公开链接,用于消息分享、文档嵌入或社交媒体发布。
Upload images to img402.dev and get a public URL. Free tier: 1MB max, 7-day retention, no auth. Use when the agent needs a hosted image URL — for sharing in messages, embedding in documents, posting to social platforms, or any context that requires a public link to an image file.
clawhub install image-hosting