D6-D8 migration: Migration of Drupal 6 Images (ImageField module) to Drupal 8 Images works out of the Box!
We are having a Drupal 6 site, which is using ImageField module, for adding images in content type. The content and images migration to Drupal 8 site works out of the box!!
We carried out following steps to see it in action:
1) In D6 site, we added Image field, as provided by ImageField module, in Page content type. We configured this field to have Alt/Title information along with Unlimited number of values.
After adding the field, we created a Page content and uploaded multiple images in Image field along with Alt/Title info. D6 site with Page content looks like below,
2) Next we installed D8 site with default settings. Afterwards we enabled Drupal Upgrade and Migrate Tools contrib modules to do the migration,
In both the cases, content and images of our Page content type gets migrated to D8 site and looks like below,
Note: After the migration, D8 Page content type didn't show Alt/Title information by default. We enabled both the Alt/Title fields under Image field in Page content type. The Alt/Title data was already gets migrated so we just enabled Alt/Title fields to display it.
Secondly image thumbnails were not visible in the Edit screen above so we gave permissions to 'files' folder and cleared the cache. And it worked fine.
It's great that Images uploaded using ImageField module in D6 site gets migrated automatically in D8 site!!
We carried out following steps to see it in action:
1) In D6 site, we added Image field, as provided by ImageField module, in Page content type. We configured this field to have Alt/Title information along with Unlimited number of values.
After adding the field, we created a Page content and uploaded multiple images in Image field along with Alt/Title info. D6 site with Page content looks like below,
2) Next we installed D8 site with default settings. Afterwards we enabled Drupal Upgrade and Migrate Tools contrib modules to do the migration,
drush en migrate_upgrade migrate_tools -y3) Then we executed the migration using Drush. Either we can run the full migration like below,
drush migrate-import --allOR we can execute specific migrations for content and images like below,
drush migrate-import d6_field
drush migrate-import d6_field_instance
drush migrate-import d6_field_instance_widget_settings
drush migrate-import d6_field_formatter_settings
drush migrate-import d6_file
drush migrate-import d6_filter_format
drush migrate-import d6_node_type
drush migrate-import d6_user_role
drush migrate-import d6_user
drush migrate-import d6_node__page
In both the cases, content and images of our Page content type gets migrated to D8 site and looks like below,
Note: After the migration, D8 Page content type didn't show Alt/Title information by default. We enabled both the Alt/Title fields under Image field in Page content type. The Alt/Title data was already gets migrated so we just enabled Alt/Title fields to display it.
Secondly image thumbnails were not visible in the Edit screen above so we gave permissions to 'files' folder and cleared the cache. And it worked fine.
It's great that Images uploaded using ImageField module in D6 site gets migrated automatically in D8 site!!


Comments