winter icon indicating copy to clipboard operation
winter copied to clipboard

imageWidth/imageHeight filters not available on cold cache

Open matteotrubini opened this issue 1 year ago • 1 comments

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.

matteotrubini avatar May 07 '24 16:05 matteotrubini

@matteotrubini any ideas for an implementation for this?

LukeTowers avatar Jul 22 '24 04:07 LukeTowers