{% set image = page.media['sample-image.jpg'].cropResize(300, 300) %}
image.height
and image.width
return the original size of image and not the cropped image size.
How do I get new image height and width?
{% set image = page.media['sample-image.jpg'].cropResize(300, 300) %}
image.height
and image.width
return the original size of image and not the cropped image size.
How do I get new image height and width?