image-id-photo-generate
Generates a standard ID photo from a user portrait plus a specification, automatically handling outfit swap, background replacement, and compliance adjustment. On failure, automatically retries with a simplified prompt for up to 3 rounds.
meitu image-id-photo-generate
Usage Examples
# Scenario 1: Basic ID photo (required parameters only)
meitu image-id-photo-generate \
--image_url ./portrait.jpg \
--spec_type "ID_Photo_1inch" \
--json
# Scenario 2: Specify background color + attire + download results
meitu image-id-photo-generate \
--image_url ./portrait.jpg \
--spec_type "ID_Photo_1inch" \
--bg_color "Blue" \
--attire "Black_suit_with_white_shirt" \
--json \
--download-dir ./outputParameter Reference
| Parameter | Required | Description |
|---|---|---|
--image_url | Yes | Aliases: --image |
--spec_type | Yes | Type: string |
--bg_color | No | Type: string |
--attire | No | Type: string |
--download-dir | No | Type: string |
--output | No | Type: string[] |
--json | No | Output results in JSON format for easy script or agent parsing |