Read Image Properties

media · N057 · starter-package 7.0.1

Read the decoded width, height and file format of a local raster image.

Width and Height are in pixels. Format is png or jpeg. Use width and height to validate a point or size an overlay.

Inputs

ConnectorTypeUsage
filetextConnect a live file from this workflow. Required.

Outputs

width (Number), height (Number), format (Text). Fire signals successful completion.

Supports PNG and JPEG up to 32 MiB, 16 million pixels and 16,384 pixels per axis.

What happens when it runs

If the block reports invalid input, check the file format and setting named in its message. Reconnect the matching output if the item came from an earlier run.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputfile — Filetextyes
Outputwidth — Widthnumberon success
Outputheight — Heightnumberon success
Outputformat — Formattexton success
Inputfire — Firefireno
Outputfire — Firefireon success

Settings

This block has no saved settings.