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?
{% 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 | 1982 | 9 years ago | ||
| 2 | 1337 | 9 years ago | ||
| 2 | 4538 | 9 years ago | ||
| 1 | 3392 | 9 years ago | ||
| 3 | 1487 | 9 years ago |