Automatically convert all image file fields to media reference fields creating necessary configuration and migrations in modern Drupal

Modern Drupal started its life with only image fields, same as in Drupal 7, but soon added a media system complete with a media library.

https://duckduckgo.com/?t=ffab&q=Drupal+convert+image+files+to+media+reference+fields&ia=web

https://www.drupal.org/project/media_migration/issues/3263745 https://www.drupal.org/project/drupal/issues/2934885 https://www.drupal.org/forum/support/post-installation/2020-03-04/how-do-i-correctly-migrate-file-entities-to-media https://www.drupal.org/project/bigcommerce/issues/3071044 https://drupal.stackexchange.com/questions/262818/how-can-i-convert-an-existing-image-field-into-a-media-image-reference-field https://www.drupal.org/project/file_to_media https://www.drupal.org/project/image_field_to_media

Ultimately all that should change is the name of the field (if you go from field_image to field_media_image for example) but you may have to do some templating of the media entity itself. That is preferable to doing crazy things to get specific info out of the media entity (which could perhaps be made clearer to the poor soul here: https://gitlab.com/agaric/raw-notes/blob/master/content/notes/2023-07-29-community-coordination-software.md ).