Libraries anvil io getImageSize

tuple getImageSize(File image)
Returns tuple (contentType, width, height, color) for GIF, PNG and JPEG images. If the size cannot be determined returns undefined.
Throws IOError -  If an I/O error occurs