Skip to content
Image & Canvas imageSize

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

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

Syntax

$imageSize[path;(property)]

Parameters

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

Return Value

  • String.

Usage

$imageSize[path;property] → result

Example

$sendMessage[$imageSize[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.