← 返回
未分类 中文

Image Processor

Process and convert images with resize, crop, compress, and format conversion. Use when user needs to batch resize photos, convert image formats, compress im...
处理和转换图像,包括调整大小、裁剪、压缩和格式转换。适用于批量调整照片尺寸、转换图像格式、压缩图像等场景。
dinghaibin dinghaibin 来源
未分类 clawhub v1.0.0 1 版本 99689.4 Key: 无需
★ 0
Stars
📥 321
下载
💾 0
安装
1
版本
#latest

概述

Image Processor

Process and convert images with resize, crop, compress, and format conversion.

Quick Start

# Resize an image
python scripts/process.py input.jpg --resize 800x600 --output output.jpg

# Convert format
python scripts/process.py input.png --format jpg --output output.jpg

Usage

python scripts/process.py INPUT [OPTIONS]

Options:
  --output PATH      Output file path
  --resize WxH       Resize to dimensions
  --scale PERCENT    Scale by percentage
  --crop WxH+X+Y     Crop to dimensions
  --format FORMAT    Convert format: jpg, png, webp, gif
  --quality QUALITY  JPEG quality (1-100)
  --thumbnail SIZE  Create thumbnail
  --grayscale        Convert to grayscale
  --blur RADIUS      Apply blur
  --rotate DEGREES   Rotate image

Examples

# Resize to 800px width
python scripts/process.py photo.jpg --resize 800x0 --output small.jpg

# Create thumbnail
python scripts/process.py photo.jpg --thumbnail 200x200 --output thumb.jpg

# Compress for web
python scripts/process.py large.jpg --quality 80 --format webp --output optimized.webp

# Batch resize
for f in *.jpg; do python scripts/process.py "$f" --resize 1200x0 --output "small_$f"; done

# Convert to PNG
python scripts/process.py input.jpg --format png --output output.png

Features

  • Resize (by dimensions or percentage)
  • Crop
  • Format conversion (JPG, PNG, WebP, GIF)
  • Quality/compression control
  • Thumbnails
  • Grayscale conversion
  • Blur filter
  • Rotation
  • Batch processing

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 00:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Unexpand Tool

dinghaibin
将文本文件中的空格转为制表符,保持统一缩进并减小文件大小。
★ 0 📥 389

Datetime Tool

dinghaibin
全面的日期时间操作工具包,支持多种格式、时区转换、日历计算、自然语言解析以及日期...
★ 0 📥 413

Automation Workflow

dinghaibin
创建并管理自动化工作流,以处理重复性任务。适用于需要安排周期性数据同步、链式API调用、设置触发动作等场景。
★ 0 📥 374