TWIG
{% set image = page.media['sample-image.jpg'].cropResize(300, 300) %}
image.height and image.widthreturn the original size of image and not the cropped image size.
How do I get new image height and width?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
{% set image = page.media['sample-image.jpg'].cropResize(300, 300) %}
image.height and image.widthreturn the original size of image and not the cropped image size.
How do I get new image height and width?
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1297 | 9 years ago | ||
| 2 | 894 | 9 years ago | ||
| 2 | 4024 | 9 years ago | ||
| 1 | 2899 | 9 years ago | ||
| 3 | 1082 | 9 years ago |