AGENT SKILL
批量图片编辑器
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- 批量图片编辑器
- slug
- cn-batch-image-editor
- author
- 千策
- version
- 1.0.0
03 SKILL.md 正文
批量图片处理工具
功能
- 批量压缩:减小图片体积,支持质量调节
- 批量调尺寸:固定宽高、比例缩放、智能裁剪
- 批量水印:文字水印、图片Logo水印
- 格式转换:PNG/JPG/WEBP/GIF互转
- 重命名:序号、日期、自定义前缀
使用方法
批量压缩
python scripts/batch_image.py compress /path/to/images --quality 85
批量调尺寸
# 固定宽度,高度等比缩放
python scripts/batch_image.py resize /path/to/images --width 800
# 固定高度
python scripts/batch_image.py resize /path/to/images --height 600
# 固定宽高(裁剪或填充)
python scripts/batch_image.py resize /path/to/images --width 800 --height 600 --mode crop
批量加水印
# 文字水印
python scripts/batch_image.py watermark /path/to/images --text "©养虾记" --position bottom-right --opacity 0.5
# 图片水印(Logo)
python scripts/batch_image.py watermark /path/to/images --logo /path/to/logo.png --position center --opacity 0.3
格式转换
# PNG转JPG
python scripts/batch_image.py convert /path/to/images --format jpg --quality 90
# 转WEBP(更小体积)
python scripts/batch_image.py convert /path/to/images --format webp
批量重命名
# 序号重命名
python scripts/batch_image.py rename /path/to/images --prefix "photo_" --start 1
# 日期重命名
python scripts/batch_image.py rename /path/to/images --date-format "%Y%m%d_%H%M%S"
参数说明
| 参数 | 说明 | 默认值 |
|---|---|---|
| --quality | 压缩质量(1-100) | 85 |
| --width | 目标宽度 | - |
| --height | 目标高度 | - |
| --mode | 调整模式(scale/crop/fill) | scale |
| --text | 水印文字 | - |
| --logo | 水印图片路径 | - |
| --position | 水印位置 | bottom-right |
| --opacity | 水印透明度(0-1) | 0.5 |
| --format | 目标格式(png/jpg/webp/gif) | jpg |
| --output | 输出目录 | ./output |
| --prefix | 重命名前缀 | "" |
| --start | 重命名起始序号 | 1 |
水印位置选项
top-left:左上角top-right:右上角bottom-left:左下角bottom-right:右下角center:居中tile:平铺
输出示例
处理完成!
输入目录:/Users/xxx/images
输出目录:/Users/xxx/images/output
处理图片:25张
总耗时:3.2秒
原始大小:125.6 MB → 处理后:32.4 MB(压缩74%)
典型场景
- 电商图片:批量调整为800x800,压缩到200KB以内
- 社媒素材:批量加水印,防止盗图
- 证件照:批量调尺寸(295x413),统一格式
- 博客图片:转WebP格式,减小体积
出品: AISoBrand|爱索品牌 — AI搜索优化工具
官网: https://aisobrand.com
免费检测你的品牌在AI搜索中有没有存在感 → 30秒出结果
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
★ 3
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
★ 3
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
★ 3
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
★ 3
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
★ 3
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
★ 3