- Issue created by @bgilhome
This module no longer works in core 9.5, the issue being the route parameter $image_style is now passed as an entity and not a string - this means any dynamic image style URLs serve a 404 since there's no defined image style entity with that ID.
Upgrade to core 9.5, dynamic image styles serve 404 (even with empty allowed_image_styles config).
Attached patch uses a custom ParameterConverter to either load defined image styles or create a dynamic one before passing to the route controller.
NB the patch also contains changes made by patches in the issues to upgrade info file for D9 ( https://www.drupal.org/project/image_style_dynamic/issues/3139308 β ), and to allow regex in allowed image styles config ( https://www.drupal.org/project/image_style_dynamic/issues/3223708 β ).
QA.
Needs review
1.0
Code