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:
- The "Image" media type should exist in your system.
- 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
- File-Field to Media-Field
- File To Media
- Media Migration
- Migrate File Entities to Media Entities
- Migrate Media Handler
Sponsors
Nextcorp, G&G SARL www.gontcho.com
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.