wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.31k stars 188 forks source link

imageWidth/imageHeight filters not available on cold cache #1120

Open matteotrubini opened 2 months ago

matteotrubini commented 2 months ago

Package targeted

Winter CMS

Description

Twig filters | imageWidth and | imageHeight are not working until the resized image is generated (on cold cache) as they fail to manage /resizer/* url resource.

When the filter are applied to a /resizer/* resource, ImageResizer::filterGetDimensions() should calculate and return valid values (using the stored configuration?).

Will this change be backwards-compatible?

No breaking changes expected.