Batch Image Super-Resolution & Enhancement
Batch upscale and enhance image quality by automatically selecting the optimal super-resolution algorithm based on content type.
meitu batch image-superres-enhance
Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.
Usage Examples
# Scenario 1: Directory scan mode
meitu batch image-superres-enhance \
--input-dir ./low-res \
--output-dir ./hd \
--prompt "e-commerce product image" \
--json
# Scenario 2: Config file mode
meitu batch image-superres-enhance \
--config ./batch.image-superres-enhance.yaml \
--output-dir ./hd \
--jsonConfig File Example
version: 1
defaults:
outputDir: ./hd
items:
- input: ./images/low1.jpg
prompt: scanned document
- input: ./images/low2.jpg
prompt: e-commerce product imageParameter Reference
| Parameter | Required | Description |
|---|---|---|
--input-dir | No | Input directory, recursively scans image files |
--output-dir | Yes | Output directory |
--config | No | Path to YAML/JSON config file |
--concurrency | No | Type: number; Default: 3; Number of parallel tasks |
--max-retries | No | Type: number; Default: 0; Number of retries on failure |
--skip-exist | No | Skip existing output files |
--dry-run | No | Preview the plan without execution |
--no-progress | No | Disable per-task progress logging |
--json | No | Output results in JSON format |
--json-output | No | Write results to a specified JSON file |
--skill-name | No | Skill name for server-side attribution |
--prompt | No | Type: string; Image content description (e.g. "e-commerce product image", "scanned document") |