Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Media External

441 sites No security coverage
View on drupal.org

This module allows you to import images from external sources like Pexels and Unsplash directly into your Drupal media library. You can configure API keys and create new media types that pull content from these external providers, making it easy to manage and use external media assets locally.

This module provides a new media source that can be used to import external media as local media items using the media library. External sources for images can be added using plugins. The module ships with plugins for the open source image libraries Pexels and Unsplash.

Using the module

  • Configure the API keys for Pexels and/or Unsplash using settings.local.php.
    $settings['media.external_provider.unsplash.access_key'] = 'YOUR_UNSPLASH_ACCESS_KEY';
    $settings['media.external_provider.pexels.api_key'] = 'YOUR_PEXELS_API_KEY';
    
  • Create a new media type choosing "External media" as the source.
  • In the source configuration, select the provider plugin you want to use for the media type.
  • Save the media type, the source field that stores the external media ID will automatically be created.
  • To improve performance, it is recommended to create extra custom fields to store API data.
    • Go to the "Manage fields" page and create a separate text field to store the image URL.
    • Go to the "Manage fields" page and create a separate text field to store the image alt text.
    • Edit the media type and map the "File URL" and "Alt text" field to the created custom fields.
    • Since the custom fields are now automatically filled when media items are created, it is fine to remove them from the different form displays. The alt text can still be shown if editors prefer to override the alt texts provides by the external media provider.
    • Using the imagecache_external module, you can apply an image style to the custom text field containing the mapped image URL.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Dec 2025
Latest release
1 week ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0-beta3 Pre-release 9–11 Aug 21, 2026
1.0.0-beta2 Pre-release 9–11 Dec 23, 2025