Skip to content

fix(image): add --out flag for saving to exact file path#114

Merged
RyanLee-Dev merged 2 commits intomainfrom
fix/image-out-flag
Apr 24, 2026
Merged

fix(image): add --out flag for saving to exact file path#114
RyanLee-Dev merged 2 commits intomainfrom
fix/image-out-flag

Conversation

@RyanLee-Dev
Copy link
Copy Markdown
Collaborator

Summary

  • Add --out <path> flag to image generate for saving to an exact file path
  • Validates that --out cannot be used with --n > 1 (use --out-dir instead)
  • Auto-creates parent directories if they don't exist
  • Consistent with speech synthesize --out behavior

Test

# Save to exact path
mmx image generate --prompt "A cat" --out /tmp/cat.jpg
# saved: /tmp/cat.jpg

# Error when used with multiple images
mmx image generate --prompt "A cat" --n 3 --out /tmp/cat.jpg
# error: --out cannot be used with --n > 1. Use --out-dir instead.

Closes #112

Resolve conflicts: combine --out flag with response_format/base64 support.
@RyanLee-Dev RyanLee-Dev merged commit 00d73b5 into main Apr 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

image generate: --out parameter ignored, file saved to current directory instead

1 participant