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
| Connector | Type | Usage |
|---|---|---|
file | text | Connect 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.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | file — File | text | yes |
| Output | width — Width | number | on success |
| Output | height — Height | number | on success |
| Output | format — Format | text | on success |
| Input | fire — Fire | fire | no |
| Output | fire — Fire | fire | on success |
Settings
This block has no saved settings.
