Skip to content

$imageSize

Returns an image size.

Usage

$imageSize[src;property?]

Parameters

FieldTypeDescriptionRequired
srcPath | URL | ImagePath or url to the image.True
property”width” | “height” | 0 | 1The image size property to return.False

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$imageSize",
"description": "Returns an image size.",
"params": [
{
"name": "src",
"description": "Path or url to the image.",
"type": "Path | URL | Image",
"required": true
},
{
"name": "property",
"description": "The image size property to return.",
"type": "\"width\" | \"height\" | 0 | 1",
"required": false,
"enum": {
"0": "width",
"1": "height",
"width": 0,
"height": 1
}
}
],
"usage": "$imageSize[src;property?]",
"category": "other",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/other/imageSize.ts",
"docs": "https://aoicanvas.vercel.app/functions/imagesize"
}