Skip to content

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

@michaelhuo2030

Description

@michaelhuo2030

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions