Batch Element Removal
Removes watermarks, text, or local objects from images in batch. Supports bulk text removal and targeted object elimination.
meitu batch image-element-remove
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-element-remove \
--input-dir ./images \
--output-dir ./clean \
--prompt "Remove watermark" \
--json
# Scenario 2: Config file mode
meitu batch image-element-remove \
--config ./batch.image-element-remove.yaml \
--output-dir ./clean \
--jsonConfig File Example
version: 1
defaults:
outputDir: ./clean
items:
- input: ./images/watermark1.jpg
prompt: Remove the watermark in the bottom right corner
- input: ./images/text1.jpg
target: watermark
prompt: Remove the text from the 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 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 |
--target | No | Type: string; Type of element to remove |
--prompt | No | Type: string; Description of what to remove |