Open mjauvin opened 3 weeks ago
@mjauvin I'm not sure that using mode: crop
is synonymous with using the crop
command in the ImageResizer
class - it appears that crop
is just a shortcut method. Further, it appears that the resize
filter is passing everything through the resize
method anyway, which just filters down to the Winter\Storm\Database\Attach\Resize
utility class which does the actual resizing/cropping.
My guess is that the crop
method was being set up to be used for a separate crop
filter in Twig.
@mjauvin could you provide an example of what you were wanting to use the event for?
@LukeTowers I created a betterCrop() method that can crop from the different sides & corners of an image and I wanted to use the event for this.
@mjauvin so right now you're just using the resize event instead?
@mjauvin so right now you're just using the resize event instead?
Correct
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
When using the ImageResizer with mode:crop, the crop() method never gets called.
Steps to replicate
Twig markup:
Plugin boot method:
Workaround
No response