requires = IS_EMPTY_OR(IS_IMAGE())
# Check if uploaded file is in any of supported image formats |
Iterable containing allowed image file extensions in lowercase
# Check if uploaded file is either JPEG or PNG:
requires = IS_IMAGE(extensions=('jpeg', 'png'))
Iterable containing maximum width and height of the image
requires = IS_IMAGE(maxsize=(200, 200))
Iterable containing minimum width and height of the image
requires = IS_IMAGE(minsize=(200, 200))
" Web2py Book"