The AI Image repository allows you to generate an image from a text prompt, or to edit an existing image using a text prompt. As a repository plugin it is accessed from the repositories via the HTML editor "insert image" dialog. Or via the Moodle file manager.

HTML EditorFile Manager


From the list of repositories choose "AI Image."


To Generate an Image

  1. Enter an image description in the "Enter a prompt" field. The prompt should describe the picture in as much detail as possible.
  2.  Choose an image type from the list of options in the dropdown field.
  3. Select "Make Image"
  4. Wait while the image is generated. There will be a small spinner beneach the make image button.
  5. Finally when the image is created, tap/click it.
  6. Alter the name and other metadata and press "Select this File" to add it to the files area/editor


1.2.3 Enter details and press make image4. Wait while the image is generated
5. When the image is ready, tap/click it6. Edit metadata and press "Select this File"
 


To Modify an Existing Image


You can use text prompts to request AI edit an existing image using the AI Image repository.


Requirements for image editing

  • At the time of writing to edit existing images you must be using Gemini provider or Poodll. 
  • There must be images in the files area to edit. 
  • There must be fewer than the maximum number of files in the files area.

    This is a known limitation of the plugin in the Moodle repository system. If the files area contains the maximum number of files allowed already, there will be no "+" icon on the repository, so repositories will not be available. In this case, if possible, increase the allowable number of files in the activity that hosts the file manager / editor.


The process for modifying an existing image

  1. Select an existing image
  2. Enter a description of the changes you wish to make in the "Enter a prompt" field. 
  3. Select "Make Image"
  4. Wait while the image is generated. There will be a small spinner beneath the make image button.
  5. Finally when the image is created, tap/click it.
  6. Alter the name and other metadata and press "Select this File" to add it to the files area/editor
  7. Choose to overwrite or save with a different name


1.2.3 Select image, enter instructions and "Make Image"4. Wait while the image is generated
5. When the image is ready, tap/click it6. Edit metadata and press "Select this File"
7. Choose to overwrite (or save with new name)