Edits an existing image using an AI prompt. Requires an image service that supports image-to-image editing (such as OpenAI's GPT Image models, Gemini, or Flux).
php cli/joomla.php aitiny:image:edit <inputFile> <prompt> [options]
Required. The input image to edit. This can be a file path, a Joomla Media URI (e.g. local-images:aitiny/myimage.png), or a URL.
Required. A description of the changes you want to make to the image.
Edit the image in-place, replacing the original file. Cannot be used together with --output.
The output image format: png, jpg, or webp. Defaults to png.
The output type: none, mediauri, url, imagebase64, or image. Defaults to none. Cannot be used together with --in-place.
A style preset to apply.
The image size: small, medium, or large.
The aspect ratio.
# Edit an image in-placephp cli/joomla.php aitiny:image:edit local-images:aitiny/photo.png "Make it look like a watercolour painting" -i# Edit and save as a new image, getting the media URIphp cli/joomla.php aitiny:image:edit /path/to/image.jpg "Add a sunset sky" -o mediauri