AI Interpolator Pixabay
Last updated on
23 February 2024
The Pixabay plugin, uses a text field to search for a relevant image from the royaltee-free stock image source Pixabay. This then populates an image field or generates and populates a media field.
This is good if you are unsatisfied with the quality of AI generated images.
It works very well together with OpenAI Plugin, since you can take any context and ask OpenAI for one or two search words that then populates the search to Pixabay.
Module link: https://www.drupal.org/project/ai_interpolator_pixabay
Installation
- Use Composer to get the module: "composer require 'drupal/ai_interpolator_pixabay"
- Install the AI Interpolator Pixabay like any other module. This will install the Media Pixabay module as a dependency.
- Follow the instructions on how to setup Media Pixabay.
How to use
In this use case we will setup an image search.
- Create a new node called "Article"
- On the "Article" you generate a Text (plain) field that you name "Image Search".
- On the "Article" you generate another Image field that you name "Image"
- If you scroll down on the settings page you should now see a check box titled "Enable AI Interpolator". Check that one.
- In the "Choose AI Interpolato Rule" field select "Pixabay Image".
- In the "Interpolator Base Field" you choose "Image Search" as the context data representation.
- Save the settings.
- Now try generating an Article and fill out the image search.
- After saving the image should have been filled out automatically if it found anything.
Example ideas of workflows that could be done with the Pixabay plugin.
- Getting real photos for galleries.
- Getting real photos for header images.
You can also find videos of OpenAI Workflows under workflows-of-ai.com
Available Rules
| Rule Name | Description | Field Types |
|---|---|---|
| Pixabay Image | Searches for images on Pixabay stock image database and fills out an image field. | Image |
| Pixabay Media | Searches for images on Pixabay stock image database and creates media entities. | Media |
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
