image-element-remove
Remove watermarks/text/local objects. Covers general watermark removal, semi-transparent document watermark removal, local object/element removal, and specified text removal.
meitu image-element-remove
Usage Examples
# Scenario 1: Remove general watermark (only required parameters)
meitu image-element-remove \
--image_url ./sample.jpg \
--json
# Scenario 2: Remove specified text
meitu image-element-remove \
--image_url ./sample.jpg \
--prompt "Remove the date watermark on the image" \
--json
# Scenario 3: Remove local object + download result
meitu image-element-remove \
--image_url ./sample.jpg \
--prompt "Remove the clutter in the bottom-left corner" \
--json \
--download-dir ./outputParameter Reference
| Parameter | Required | Description |
|---|---|---|
--image_url | Yes | Alias: --image; Type: string; The image to be processed for element removal |
--target | No | Type: string; Default: watermark; Type of element to remove (watermark / text) |
--prompt | No | Type: string; Required when removing a specific object or text — provide a description |
--download-dir | No | Type: string; Download the result file to the specified local directory |
--output | No | Type: string[]; Specify output file paths, mapped in order of data.result.urls |
--json | No | Output results in JSON format for easy parsing by scripts or agents |