Automatically added to all image fields

Created on 10 March 2025, 4 months ago

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

๐Ÿ’ฌ Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States ultimike Florida, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ultimike
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States zengenuity

    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.

  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands jurriaanroelofs

    @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.

  • ๐Ÿ‡ต๐Ÿ‡นPortugal Sergio Morais

    sergio morais โ†’ made their first commit to this issueโ€™s fork.

Production build 0.71.5 2024