Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Image field to media

Security covered Maintenance fixes only 726 sites

This module helps migrate existing Drupal Image fields to Media fields. It can either directly convert an Image field to a Media field, populating it with existing images, or create a new Media field and copy the image content. The process ensures that duplicate media items are not created.

Helps convert existing image fields to Media fields. The module adds a new Media field to the bundle and updates all entities. After that, each entity will have the Media field populated with the same image items that the Image field has. To prevent of duplicate creation, sha1 hash of image files compares.

Configuration

For the module to work, the following conditions must be met:

  1. The "Image" media type should exist in your system.
  2. The "Image" media type should have the field of the "Image" field type with the machine name "field_media_image".

So check if they exist, and if not, then create them. You can do it from UI by visiting "/admin/structure/media/add"
Also, you can copy missing config files from "/core/profiles/standard/config/optional" to the related folder of your profile.

Uses

1. Visit "Manage fields" tab and choose the Image field you want to migrate to Media.
2. Click on the "Clone to media" operation.
3. Enter the name of the Media field and click on the "Proceed" button.

Similar projects

Sponsors

 Nextcorp, G&G SARL www.gontcho.com

Drupal 10–11

Ask your assistant about Image field to media

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • media Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
8
Tracked since
May 2023
Latest release
1 month ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.2 Stable 10–11 Sep 2, 2026
3.0.1 Stable 10–11 Jul 12, 2025
3.0.0 Stable 10–11 Dec 9, 2024
3.0.x-dev Dev 10–11 Dec 9, 2024
2.0.2 Stable 9–10 Oct 5, 2023
2.0.1 Stable 9–10 Jul 10, 2023
2.x-dev Dev 9–10 Jul 10, 2023
2.0.0 Stable 10 May 23, 2023