size() variable error

edited March 2017 in Python Mode

Hi, I want to set the size based on an image dimensions.

What am I doing wrong? Error

(if I print the value, it's ok).

def setup():

 photo = loadImage("Photo.jpg")
 print(photo.height)
 image(photo, 0, 0)

Thank you!

Sign In or Register to comment.