Batch Style Transfer
Batch apply artistic style transfer to images, supporting a variety of style effects.
meitu batch image-style-transfer
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 required)
meitu batch image-style-transfer \
--config ./batch.image-style-transfer.yaml \
--output-dir ./styled \
--jsonConfig File Example
version: 1
defaults:
outputDir: ./styled
items:
- input: ./images/photo1.jpg
prompt: convert to cartoon style
- input: ./images/photo2.jpg
reference: ./styles/van_gogh.jpg
prompt: apply style from this referenceParameter Reference
| Parameter | Required | Description |
|---|---|---|
--output-dir | Yes | Output directory |
--config | Yes | Path to YAML/JSON config file (config file required) |
--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 |