[Meta] AI Image File Name

Created on 15 September 2025, about 2 months ago
Updated 26 September 2025, about 1 month ago

Implement AI-powered functionality to automatically generate descriptive, SEO-friendly filenames for uploaded media files in Drupal. Currently, uploaded files often retain random or non-descriptive filenames (e.g., "IMG_20240315_143827.jpg" or "DSC_0001.png"), which negatively impacts SEO performance and content management workflows.

Goals & Guiding Principles

Primary Goal: Transform random, cryptic filenames into meaningful, descriptive names that improve SEO and content discoverability.

Key Benefits:

  • Enhanced SEO through descriptive file URLs
  • Improved content management and organization
  • Better accessibility and user experience
  • Streamlined bulk file management workflows

Guiding Principles:

  • Maintain original file integrity and metadata
  • Provide user control and confirmation before changes
  • Support batch operations for efficiency
  • Ensure compatibility with existing Drupal media workflows

MVP Functionality

1. Individual File Renaming:

  • Add "Generate AI Filename" button to media image edit forms
  • AI analyzes image content to suggest descriptive filename
  • Display suggested filename with edit capability before applying

2. Bulk Operations:

  • Extend Drupal's bulk operations to include AI filename generation
  • Select multiple media items for batch filename updates
  • Progress indicator and error handling for bulk operations
  • Option to review all suggestions before applying changes

Technical Requirements:

  • Integration with Drupal's media entity system
  • Preservation of file extensions and MIME types
  • Update of all references and links automatically
  • Logging of filename changes for audit trail

The result of this recipe is a Drupal Recipe as defined below. Potentially a contrib module has to be created to support the functionality, or existing contrib modules should be used and extended.

Next Steps

🌱 Plan
Status

Active

Component

Planning

Created by

🇩🇪Germany breidert

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024