Media Library Thumbnail Override
11 sites
Security covered
This module enhances the Drupal Media Library by replacing generic placeholders with custom icons for non-image media types, using file extensions to display specific graphics. It ensures consistent sizing and maintains proper HTML and CSS for seamless integration.
This Drupal module overrides the default thumbnails for non-image media items in the Media Library, displaying custom icons based on the file extension instead of generic placeholders.
Features
- Automatically detects file extensions for media items (documents, videos, audio, etc.)
- Displays extension-specific icons (e.g., `pdf.png` for PDF files)
- Falls back to a generic icon if no extension-specific icon exists
- Applies the `media_library` image style for consistent sizing (220x220 pixels)
- Maintains proper HTML markup and CSS classes for seamless integration