Package s3 :: Module s3widgets :: Class S3ImageCropWidget
[frames] | no frames]

Class S3ImageCropWidget

source code

??-290 --+
         |
        S3ImageCropWidget

Allows the user to crop an image and uploads it. Cropping & Scaling( if necessary ) done at client-side


To Do: Doesn't currently work with Inline Component Forms

Instance Methods
 
__init__(self, image_bounds=None) source code
 
__call__(self, field, value, download_url=None, **attributes) source code
Method Details

__init__(self, image_bounds=None)
(Constructor)

source code 
Parameters:
  • image_bounds - Limits the Size of the Image that can be uploaded. Tuple/List - (MaxWidth, MaxHeight)

__call__(self, field, value, download_url=None, **attributes)
(Call operator)

source code 
Parameters:
  • field - Field using this widget
  • value - value if any
  • download_url - Download URL for saved Image