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 |
|---|---|---|---|---|
| 1 | 672 | 1 week ago | ||
| 0 | 3042 | 9 years ago | ||
| 2 | 1983 | 9 years ago | ||
| 2 | 5336 | 9 years ago | ||
| 1 | 4134 | 9 years ago |