Skip to content
Image & Canvas imageDimensions

$imageDimensions — Returns the size of an image (URL, data URL, images://name or preload://name): width, height or JSON. (alias of $imageSize)

Returns the size of an image (URL, data URL, images://name or preload://name): width, height or JSON. (alias of $imageSize)

Syntax

$imageDimensions[path;(property)]

Parameters

  • path (String, required) — Image source
  • property (String, optional) — width or height (empty: JSON)

Return Value

  • String.

Usage

$imageDimensions[path;property] → result

Example

$sendMessage[$imageDimensions[path;property]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.