Batch Image Editing
Edits existing images or creates new ones in batch, supporting e-commerce product images, portrait editing, multi-image consistent editing, general editing, and reference-image-based creation.
meitu batch image-edit
Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.
Usage Examples
# Config file mode (config file is required)
meitu batch image-edit \
--config ./batch.image-edit.yaml \
--output-dir ./outputs \
--jsonConfig File Example
version: 1
defaults:
outputDir: ./outputs
items:
- input: ./images/base1.jpg
prompt: White background e-commerce main image
- input: ./images/base2.jpg
reference: ./images/ref2.jpg
prompt: Incorporate design elements from the reference into the base image
- input: ./images/base3.jpg
prompt: Portrait beauty retouchingParameter Reference
| Parameter | Required | Description |
|---|---|---|
--output-dir | Yes | Output directory |
--config | Yes | Path to YAML/JSON config file (config file is required) |
--concurrency | No | Type: number; Default: 3; Number of concurrent executions |
--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 executing |
--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 attributed on the server side |