# NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

# Reference | imagesize()

Syntax |
    imagesize(path)
Description | Returns the dimensions (width and height) of an image located at the given path. Obtaining the size of an image is useful when the image needs to scaled to an exact size, for example. The return value is a list with the image's width and the image's height.
Returns | a tuple with the width and height of the given image
Example |
    w, h = imagesize("images/engine.png")
    print w
    print h