Welcome to the official repository for the AIPic Page Component Plugin for ILIAS. This Open Source ILIAS Plugin is created and maintained by SURLABS.
AIPic is a Page Component plugin that enhances ILIAS pages by allowing users to create images using artificial intelligence directly within the learning environment.
- Seamless integration of AI image generation within ILIAS pages as a Page Component.
- Generation of images based on user-provided text prompts.
- Options to customize image style, alignment, and size.
- Secure and efficient handling of the image generation process via API.
- User-friendly interface for interacting with the AI image generation tool.
- This plugin requires PHP version 8.1+ to work properly on your ILIAS platform.
- This plugin requires ILIAS version 9.x.
-
Create necessary subdirectories if they do not exist:
mkdir -p Customizing/global/plugins/Services/COPage/PageComponent cd Customizing/global/plugins/Services/COPage/PageComponent
-
Clone the repository into a directory named
AIPic
:git clone https://github.com/surlabs/AIPicForILIAS.git ./AIPic cd AIPic git checkout main
-
After installation or updating the plugin, run the following commands in the ILIAS root folder:
composer install --no-dev npm install php setup/setup.php update
Important: Make sure your main
composer.json
and ILIAS.gitignore
files do not exclude plugins. Also, do not use the--no-plugins
flag during ILIAS setup. -
Go to the ILIAS Plugin Administration page (Administration -> Plugins).
-
Find the "AIPic" plugin in the list, click "Actions", and select "Install".
-
After installation, click Then click "Actions" again and select "Activate".
-
Configure the plugin as needed (e.g., API keys) by clicking "Actions" and then "Configure".
-
The plugin is now ready to be used on ILIAS pages.
-
Install and configure the AIPic plugin as described in the setup instructions.
-
Navigate to the ILIAS page where you want to insert an AI-generated image.
-
Configure the plugin by completing the following steps:
-
Enable page editing, then add the “AIPic” Page Component from the available elements.
-
The component will first display an overview with all available settings and options.
-
In the component’s settings, enter a text prompt describing the image you want to generate.
-
Adjust the available options, such as image style, size, or alignment, to your preference.
-
Click the generate button — the plugin will create the image based on your input.
-
Once the image is generated, it will be automatically displayed on the page.
This plugin follows the same branching rules as the ILIAS project:
- main (or trunk): Main development branch.
- release_X.X (e.g., release_9.0): Stable release branches corresponding to ILIAS versions.
To uninstall the plugin:
- Go to ILIAS Plugin Administration, find "AIPic", click "Actions", and select "Deactivate".
- Then, click "Actions" again and select "Uninstall".
- Remove the plugin directory from your ILIAS installation:
rm -rf Customizing/global/plugins/Services/COPage/PageComponent/AIPic
- Run the following commands in the ILIAS root folder:
composer du php setup/setup.php update
This plugin is licensed under GPLv3. See the LICENSE file for details.
Authors: