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.
Normally you do not want the image styles to be exported in config, because they should be generated as needed. Also on sites with that show lots of images in different sizes this would clutter up the config directory.
The best solution would be to ignore all these image styles on an import. Ignoring those in the sync directory and ignoring those already present on the site.
Maybe the config_split module could help here?
Comments
Comment #2
weseze CreditAttribution: weseze commentedComment #3
weseze CreditAttribution: weseze commentedBest way forward here is to use the config_split module and add "image.style.drimage*" to the blacklist. Also see the same problem in webform module: #2931104: How to prevent config import from deleting webforms on a target site if they don't exist in code?