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 | 1323 | 9 years ago | ||
| 2 | 919 | 9 years ago | ||
| 2 | 4048 | 9 years ago | ||
| 1 | 2923 | 9 years ago | ||
| 3 | 1106 | 9 years ago |