[Meta] AI Image File Name
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3546656. -->
Reported by: [breidert](https://www.drupal.org/user/135619)
>>>
<p>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.</p>
<h2>Goals & Guiding Principles</h2>
<p><strong>Primary Goal:</strong> Transform random, cryptic filenames into meaningful, descriptive names that improve SEO and content discoverability.</p>
<p><strong>Key Benefits:</strong></p>
<ul>
<li>Enhanced SEO through descriptive file URLs</li>
<li>Improved content management and organization</li>
<li>Better accessibility and user experience</li>
<li>Streamlined bulk file management workflows</li>
</ul>
<p><strong>Guiding Principles:</strong></p>
<ul>
<li>Maintain original file integrity and metadata</li>
<li>Provide user control and confirmation before changes</li>
<li>Support batch operations for efficiency</li>
<li>Ensure compatibility with existing Drupal media workflows</li>
</ul>
<h2>MVP Functionality</h2>
<p>1. Individual File Renaming:</p>
<ul>
<li>Add "Generate AI Filename" button to media image edit forms</li>
<li>AI analyzes image content to suggest descriptive filename</li>
<li>Display suggested filename with edit capability before applying</li>
</ul>
<p>2. Bulk Operations:</p>
<ul>
<li>Extend Drupal's bulk operations to include AI filename generation</li>
<li>Select multiple media items for batch filename updates</li>
<li>Progress indicator and error handling for bulk operations</li>
<li>Option to review all suggestions before applying changes</li>
</ul>
<p>Technical Requirements:</p>
<ul>
<li>Integration with Drupal's media entity system</li>
<li>Preservation of file extensions and MIME types</li>
<li>Update of all references and links automatically</li>
<li>Logging of filename changes for audit trail</li>
</ul>
<p>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.</p>
<h2>Next Steps</h2>
<ul>
<li>Define user story for AI Image Filename (This document)</li>
<li>Create the project: <a href="https://www.drupal.org/project/ai_recipe_image_filename">https://www.drupal.org/project/ai_recipe_image_filename</a></li>
<li>Create MVP version of feature</li>
<li>Documentation/Demos</li>
<li>Gather feedback</li>
<li>Start on Post MVP features</li>
</ul>
> Related issue: [Issue #3545444](https://www.drupal.org/node/3545444)
> Related issue: [Issue #3541825](https://www.drupal.org/node/3541825)
issue