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 ./output

Parameter Reference

ParameterRequiredDescription
--image_urlYesAlias: --image; Type: string; The image to be processed for element removal
--targetNoType: string; Default: watermark; Type of element to remove (watermark / text)
--promptNoType: string; Required when removing a specific object or text — provide a description
--download-dirNoType: string; Download the result file to the specified local directory
--outputNoType: string[]; Specify output file paths, mapped in order of data.result.urls
--jsonNoOutput results in JSON format for easy parsing by scripts or agents