This project is not covered by Drupal’s security advisory policy.

A Drupal 8 and 9 module which fixes legacy code such as:

[img_assist|nid=9491|title=|desc=|link=none|align=right|width=100|height=37]
[acidfree:9491 align=left size=80x163]
[image:9491]

Are you migrating a D6 or perhaps D7 site with img_assist, image_filter, or acidfree tags, and want to convert your image fields to media reference fields? This is the module for you. Based on the source of Convert Media Tags to Markup, this module will convert the tags from the img_assist, acidfree, and image_filter modules to <drupal-media... tags for use with the Embed media filter. Three text filters are provided, one for each module's tags, as I have used all of them on my site at different times.

By default, nodes created during a full-site migration keep their original nid. Use Image field to media module (or something else) to clone your image fields to media reference fields. If the field name is not field_image_media (which is what it will be if your image nodes used the default image field name, field_image) then you will currently have to edit image_to_media_filters/src/ImageToMediaFilters/App.php — one probable future enhancement might be the ability to choose the field name.

Make sure to enable the Embed media filter for your text format, and also to place it after any of these filters.

The module can also upgrade your fieldables' text areas' contents in the database, by calling a function from drush ev. This is still a little flaky in that it seems to want to update some nodes when it's not necessary, but I've tested it on my database and it's not eating anything (and it does work.) And you're going to make a database backup before doing anything like this to your database, right? See the README.md file for details.

Project information

Releases