[image.size]

image.size is a slot in the image namespace, in Hyperlambda, the language of Magic Cloud. Returns the width and height of an image.

  • Value (image-file), required: Image filename to inspect
  • Returns: Returns [width:int] and [height:int] child nodes for the image dimensions

JSON declaration

This is the complete declaration of image.size, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "image.size",
  "description": "Returns the width and height of an image",
  "signature": {
    "input": {
      "kind": "image-file",
      "description": "Image filename to inspect",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Lambda",
      "kind": "image-dimensions,lambda-tree",
      "description": "Returns [width:int] and [height:int] child nodes for the image dimensions"
    }
  }
}

← image.resize all image.* slots