You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I eager load a focus point asset the output image no longer crops around the focal point, but if I revert back to lazy loading it works as expected?
In the below code, listingImage is a focuspoint field.
To clarify, it looks like I still have access to image.focusPctX and image.focusPctY when eager loaded, but the value reported is incorrect, it appears to be centered?
When I eager load a focus point asset the output image no longer crops around the focal point, but if I revert back to lazy loading it works as expected?
In the below code, listingImage is a focuspoint field.
{% set workItemsEager = craft.entries({ section: 'work', limit: 8, with: [ 'listingImage', ] }) %}
{% set transformedImages = craft.imager.transformImage(image,[ { width: 500, height: 500, jpegQuality: 60 }, { width: 320, height: 320, jpegQuality: 60 }, ],{ allowUpscale: false, mode: 'crop', position: image.focusPctX ~ '% ' ~ image.focusPctY ~ '%', interlace: true }) %}
When outputting a transformed image from this code, the position is ignored. If I remove the "with" lines the focus point is retained.
The text was updated successfully, but these errors were encountered: