Skip to content

image_size

Return the width and height of an image.

Parameters

  • image — An image from load_image or load_asset.
local width, height = image_size(image)
print(width, height)

Related: load_image.

See the images guide for more examples and limits.