With this function, you can retrieve the height and width of an image-type property. You can use this information, for instance, to give a content block the same height or width.
The output of getimagesize:
Key | Content | Example |
---|---|---|
0 | Width | 765 |
1 | Height | 956 |
2 | Textually, the width and height. | width="765" height="956" |
bits | Bits | 8 |
channels | Channels | 3 |
mime | Mime type | image/jpeg |
Examples
It's possible to use a variable with a public URL or based on an image property in the content or object.
Based on a property
Create a new property of the type "Image":
Subsequently, in the content or object, you can retrieve the `getimagesize` of the specified property: