用于VLM和OCR工作流的视觉检查辅助工具。当智能体需要帮助视觉模型在重新分析前更清晰地查看图像时使用:可旋转歪斜图像、调整对比度/亮度、裁剪关键区域等。
Treat this skill as a visual aid for the model, not as a general image editor.
Use scripts/image_helper.py to create a clearer intermediate image, then re-run analysis on that result.
bash
# Rotate sideways text
python scripts/image_helper.py image.png --rotate 90 -o rotated.png
# Crop a likely area and zoom it
python scripts/image_helper.py image.png --crop-preset bottom-right --scale-preset x3 -o detail.png
# Improve low-contrast text
python scripts/image_helper.py image.png --auto-enhance -o enhanced.png
# Convert an existing file path directly to base64
python scripts/image_helper.py image.png --base64
--rotate.--crop-preset first, then add --scale-preset.--scale-preset x2 or x3.--auto-enhance, or manually tune --contrast and --sharpness.--base64.--input-mode auto or force --input-mode base64 / data-uri.-o or return inline base64 with --base64.references/cli-reference.mdreferences/presets.mdInstall Pillow if it is missing:
bash
pip install Pillow
# or
uv pip install Pillow