image-face-swap
Two-image face/head swap compositing: replaces the face on a target scene image with a source face. Semantic rule: apply face B onto image A, where B is the source face and A is the target scene.
meitu image-face-swap
Usage Examples
# Scenario 1: Basic face swap (required parameters only)
meitu image-face-swap \
--head_image_url ./face.jpg \
--sence_image_url ./scene.jpg \
--prompt "Face swap" \
--json
# Scenario 2: Full parameters + download results
meitu image-face-swap \
--head_image_url ./face.jpg \
--sence_image_url ./scene.jpg \
--prompt "Natural face swap blending" \
--json \
--download-dir ./outputParameter Reference
| Parameter | Required | Description |
|---|---|---|
--head_image_url | Yes | Aliases: --head_url |
--sence_image_url | Yes | Aliases: --scene_image_url |
--prompt | Yes | Type: string |
--download-dir | No | Type: string |
--output | No | Type: string[] |
--json | No | Output results in JSON format for easy script or agent parsing |