Automatic Site Icon Picker provides a configurable field formatter for Drupal Link fields, enabling automatic retrieval, local storage, and display of website favicons through the Vemetric Favicon API.
The module enhances the presentation of external links, social media profiles, academic profiles, and other web resources while reducing the need for manual icon management.
Features
- Automatic favicon retrieval and local storage.
- Three display modes: icon only, icon with URL, and icon with title.
- Preset and custom icon sizes ranging from 16 to 512 pixels.
- Option to open links in a new tab.
- Domain-specific custom icon overrides.
- Configurable fallback icon for unavailable favicons.
- Support for PNG, JPEG, GIF, WebP, and sanitized SVG uploads.
- Configurable automatic favicon refresh intervals.
- Manual clearing of downloaded icons.
- Targeted cache invalidation when icons change.
- Retention of previously verified icons during external service failures.
- Preservation of site-specific settings during standard configuration synchronization.
Requirements
- Drupal core Field, Link, File, and Image modules.
- A writable public files directory.
- Outbound HTTPS access to
favicon.vemetric.comfor automatic favicon retrieval.
Configuration
- Enable the module.
- Navigate to Manage display for an entity type containing a Link field.
- Select the Link (favicon) field formatter.
- Configure the display mode, icon size, and link behavior.
- Save the display configuration.
Domain-specific icons, the fallback icon, automatic refresh intervals, and downloaded icons can be managed under Configuration > Media > Automatic site icon picker (/admin/config/media/automatic-site-icon-picker).
The configuration page is available since version 3.0.0 and requires the Administer automatic site icon picker permission.
External service and privacy
Automatic favicon retrieval sends the normalized domain name and requested icon size to the external API. Full destination URLs, paths, and query parameters are not transmitted. Domain-specific custom icons are served locally without external API requests.
Automated testing
The module includes unit, kernel, and browser tests covering formatter rendering, domain normalization, icon sizing, image handling, cache invalidation, automatic refresh, fallback behavior, and configuration management.
Automated testing is integrated into GitLab CI for supported Drupal core versions.
Support and contributions
Bug reports, feature requests, documentation improvements, and contributions are welcome in the project issue queue.
Project information
- Project categories: Media, Site structure
6 sites report using this module
- Created by artyom hovasapyan on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



