- Issue created by @ultimike
- 🇮🇳India keshav patel
Please check out this module: AI Image Alt Text → , maybe it can help.
- 🇺🇸United States ultimike Florida, USA
I'm aware of the AI Image Alt Text module, but this issue can also be considered a bug because if the prompt used to generate the image is longer than 255 characters, then an error occurs because the alt text field can't handle that.
-mike
- 🇨🇦Canada mandclu
Personally I would like to see this module have a separate field for alt text (instead of assuming it should use the prompt, which is IMHO not expected behavior). It would be a bonus if it could also allow for the use of AI Image Alt Text (if available) to generate alt text before saving the image to the media library.
- 🇺🇸United States CoffeyMachine
I opened a MR to add a required "Alternative text" field below the image preview. The default value is set to the value of the Prompt field truncated to 255 characters.
Integration with AI Image Alt Text → is more complex as AI Image Alt Text → only supports
ImageWidget
, which is not in use here. That can be opened as a separate feature request if desired. As a workaround, AI Image Alt Text → can be used on the edit screen after the Media item is created. -
coffeymachine →
committed 5a77a1ad on 1.0.x
Issue #3508469: Alt text
-
coffeymachine →
committed 5a77a1ad on 1.0.x
- Status changed to Fixed
6 days ago 1:56pm 3 May 2025 - 🇰🇬Kyrgyzstan dan_metille
@coffeymachine I'm happy with your solution, thanks!
Also, I guess that using automatically AI Image Alt Text module would not be 'free' an probably spent few tokens. While with the AI Image Alt Text module enabled, we can ask it to generate alt text on demand.