Automatically generate image captions using multiple service providers on a per volume basis.
This plugin requires Craft CMS 4.4.0 or later, and PHP 8.1 or later.
You can install this plugin from the Plugin Store or with Composer.
Go to the Plugin Store in your project’s Control Panel and search for “Image Captions”. Then click on the “Install” button in its modal window.
Open your terminal and run the following commands
# Require the plugin through composer
composer require glue-agency/craft-image-captions
# Install the plugin
php craft plugin/install image-captions
Provided out of the box
Create your custom Integration by extending the GlueAgency\ImageCaption\integrations\AbstractIntegration
class and impelmenting the GlueAgency\ImageCaption\integrations\IntegrationInterface
interface.
Hook the register
event.
use GlueAgency\ImageCaption\services\IntegrationService;
use GlueAgency\ImageCaption\events\integrations\RegisterIntegrationsEvent;
Event::on(IntegrationService::class, IntegrationService::EVENT_REGISTER, function(RegisterIntegrationsEvent $event) {
$event->integrations['your-custom-integration-name'] = YourCustomIntegration::class;
});