Description
When running mmx image generate --prompt \"...\" --out /tmp/test.png --non-interactive, the --out parameter is ignored. The image is always saved in the current working directory (e.g., image_001.jpg), not at the path specified by --out.
Command
mmx image generate --prompt \"一只橘猫在阳光下打盹\" --out /tmp/mmx_test_image.png --non-interactive
Expected
File should be saved at /tmp/mmx_test_image.png
Actual
File saved as image_001.jpg in current working directory
Output
{
"saved": [
"image_001.jpg"
]
}
Note: The --out parameter value is completely ignored. Other commands like speech synthesize respect --out correctly.
Environment
- mmx version: 1.0.11
- OS: macOS
- Installation: homebrew
Additional Context
The speech synthesize command works correctly with --out:
mmx speech synthesize --text \"你好\" --out /tmp/test.mp3 --non-interactive
# Output: {"saved":"/tmp/test.mp3",...}
This suggests the issue is specific to the image generation command.
Description
When running
mmx image generate --prompt \"...\" --out /tmp/test.png --non-interactive, the--outparameter is ignored. The image is always saved in the current working directory (e.g.,image_001.jpg), not at the path specified by--out.Command
Expected
File should be saved at
/tmp/mmx_test_image.pngActual
File saved as
image_001.jpgin current working directoryOutput
{ "saved": [ "image_001.jpg" ] }Note: The
--outparameter value is completely ignored. Other commands likespeech synthesizerespect--outcorrectly.Environment
Additional Context
The
speech synthesizecommand works correctly with--out:This suggests the issue is specific to the image generation command.