Support

Documentation

7.3.aitiny:image:generate

7.3.aitiny:image:generate

Generates a new image from a text prompt.

Usage

php cli/joomla.php aitiny:image:generate <prompt> [options]

Arguments

prompt

Required. The text description of the image you want to generate.

Options

-f, --filename

The filename to save the image as (without extension). If omitted, a filename is generated from the SHA-256 hash of the prompt.

-m, --format

The output image format: png, jpg, or webp. Defaults to png.

-o, --output

The output type. Defaults to mediauri.

  • mediauri – Prints the Joomla Media Manager URI of the saved image.

  • url – Prints the full URL to the saved image.

  • imagebase64 – Prints the image data as a Base64-encoded string.

  • image – Outputs the raw image binary data.

-s, --style

A style preset to apply to the image. Use the aitiny:image:styles command to list available styles.

-z, --size

The image size: small, medium, or large.

-a, --aspect

The aspect ratio (e.g. 16:9, 1:1, 4:3).

Examples

# Generate an image and get the media URIphp cli/joomla.php aitiny:image:generate "A tabby cat on a windowsill"# Generate with a specific style and aspect ratiophp cli/joomla.php aitiny:image:generate "A mountain landscape" -s cinematic -a 16:9# Generate as WebP with a custom filenamephp cli/joomla.php aitiny:image:generate "Company logo" -f company-logo -m webp