📦 Image Processor — Image 处理器
v1.0.0Process and convert images with resize, crop, 压缩, and 格式化 conversion. Use when user needs to batch resize photos, convert image 格式化s, 压缩 im...
详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
Image 处理器
Process and convert images with resize, crop, 压缩, and 格式化 conversion.
Quick 启动 # Resize an image python scripts/process.py 输入.jpg --resize 800x600 --输出 输出.jpg
# Convert 格式化 python scripts/process.py 输入.png --格式化 jpg --输出 输出.jpg
Usage python scripts/process.py 输入 [OPTIONS]
Options: --输出 PATH 输出 file path --resize WxH Resize to dimensions --扩展 PERCENT 扩展 by percentage --crop WxH+X+Y Crop to dimensions --格式化 格式化 Convert 格式化: jpg, png, 网页p, gif --质量 质量 JPEG 质量 (1-100) --thumbnAIl SIZE 创建 thumbnAIl --gray扩展 Convert to gray扩展 --blur RADIUS 应用ly blur --rotate DEGREES Rotate image
Examples # Resize to 800px width python scripts/process.py photo.jpg --resize 800x0 --输出 small.jpg
# 创建 thumbnAIl python scripts/process.py photo.jpg --thumbnAIl 200x200 --输出 thumb.jpg
# 压缩 for 网页 python scripts/process.py large.jpg --质量 80 --格式化 网页p --输出 优化d.网页p
# Batch resize for f in *.jpg; do python scripts/process.py "$f" --resize 1200x0 --输出 "small_$f"; done
# Convert to PNG python scripts/process.py 输入.jpg --格式化 png --输出 输出.png
Features Resize (by dimensions or percentage) Crop 格式化 conversion (JPG, PNG, 网页P, GIF) 质量/压缩ion control ThumbnAIls Gray扩展 conversion Blur 过滤器 Rotation Batch processing