Skip to content

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Oct 6, 2025

This pull request fixes an issue with the custom image manipulation presets feature added in #12624, where custom presets wouldn't be available on the Glide server if the Server instance had already been resolved.

This was causing an issue in SEO Pro's tests because social images were returning their original width/height, instead of the width/heights defined in the preset.

It turned out that the Glide Server instance was being resolved before we were calling Image::registerCustomManipulationPresets() in SEO Pro's service provider.

This PR fixes it by updating the Server instance's presets array when registering a custom preset.

Related: statamic/seo-pro#427

@jasonvarga jasonvarga merged commit 55be412 into 5.x Oct 8, 2025
29 checks passed
@jasonvarga jasonvarga deleted the fix-custom-presets branch October 8, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants