Package s3 :: Module s3validators :: Class IS_PROCESSED_IMAGE
[frames] | no frames]

Class IS_PROCESSED_IMAGE

source code

gluon.validators.Validator --+
                             |
                            IS_PROCESSED_IMAGE

Uses an S3ImageCropWidget to allow the user to crop/scale images and processes the results sent by the browser.

Instance Methods
 
__init__(self, field_name, file_cb, error_message="No image was specified!", image_bounds=(300,300), upload_path=None) source code
 
__call__(self, value) source code
Method Details

__init__(self, field_name, file_cb, error_message="No image was specified!", image_bounds=(300,300), upload_path=None)
(Constructor)

source code 
Parameters:
  • file_cb - callback that returns the file for this field
  • error_message - the error message to be returned
  • image_bounds - the boundaries for the processed image
  • upload_path - upload path for the image

__call__(self, value)
(Call operator)

source code