jonom / silverstripe-focuspoint

Module for improving automatic image cropping in SilverStripe. Adds simple art-direction control by allowing you to set and crop from a focus point instead of the centre point of an image.
MIT License
109 stars 48 forks source link

NOTE for Silverstripe 5.3 #121

Open elliot-sawyer opened 1 week ago

elliot-sawyer commented 1 week ago

If you're using Focuspoint in your templates and want to convert to webp, it needs to be the last call in your template. For example:

$FeaturedImage.FocusFill(880, 480).Convert('webp') will work, while: $FeaturedImage.Convert('webp').FocusFill(880, 480) will not work