Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is just an outline, please help completing this page with more details.
It is quite easy to migrate from many other "media" solutions to Scald.
General purpose methods
From IMCE/embedded images modules
Get a list of used files from the text fields/from the {files} table and create scald_image atoms. Enable MEE module.
From File Entity based modules
Add an atom for each file, use hooks to create new atom when a file is added.
From File Field modules
Use Atom Reference module.
From nonexistent module
Just install Scald module.
Using Migrate module
Scald support Migrate out of the box using Migrate/Migrate Extras modules. For example, with destination is Scald atom of type image, provider scald_image:
$this->destination = new MigrateDestinationEntityAPI('scald_atom', 'image');
$this->map = new MigrateSQLMap($this->machineName,
array(
'sourceid' => array(
'type' => 'int',
'notnull' => TRUE,
),
),
MigrateDestinationEntityAPI::getKeySchema('scald_atom')
);
$this->addFieldMapping('title', 'title');
$this->addFieldMapping('type')->defaultValue('image');
$this->addFieldMapping('provider')->defaultValue('scald_image');
$this->addFieldMapping('scald_thumbnail', 'field_node_gallery_image_fid')->sourceMigration('Files');
$this->addFieldMapping('scald_thumbnail:file_class')->defaultValue('MigrateFileFid');
$this->addFieldMapping('scald_thumbnail:preserve_files')->defaultValue(TRUE);