I have to admit, I was kind of surprised that when enabled, this functionality is automatically added to all image fields.

I expected it to provide an AI-assisted image widget.

I'm not asking for a change in the module, just wanted to provide feedback in case others feel the same way.

-mike

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ultimike created an issue. See original summary.

zengenuity’s picture

This was surprising to me, too. We have a project where we are only using this module for bulk updating old images without alt text initially, so we don't want content editors using the button. I found we can hide the button by adding this to settings.php:

<?php
$config['ai_image_alt_text.settings']['hide_button'] = TRUE;
?>

Note that this only hides the button with display:none. (This option is on the config form for the module, but is only visible if the "Autogenerate on upload" button is checked.)

This solution is good enough for our current project, since we're going to backfill a bunch of missing alt text, and then we can disable the module until we decide about using this going forward. But, ideally, there would be some more flexibility here.

jurriaanroelofs’s picture

@zengenuity maybe in your case you can simply disable permission to use AI Image Alt text for all roles except administrators? This should let you test the module.

@ultimike Thank you very much for your feedback, I agree this would be an essential feature for large scale Drupal implementations. If there are dozens of content types and possibly over 100 image fields there are likely use cases where this button is not needed! We will put some effort into fleshing out an update for this.

sergio morais made their first commit to this issue’s fork.

anybody’s picture

Version: 1.0.1 » 1.0.x-dev
Category: Support request » Feature request