versatileimagefield/versatileimagefield.py
def process_image(self, image, image_format, save_kwargs,
                      width, height):
        """
        Return a BytesIO instance of `image` that fits in a bounding box.

        Bounding box dimensions are `width`x`height`.
        """
        imagefile = BytesIO()
        image.thumbnail(
            (width, height),
            Image.ANTIALIAS
        )
        image.save(
            imagefile,
            **save_kwargs
        )
        return imagefile
def process_image(self, image, image_format, save_kwargs,
                      width, height):
        imagefile = BytesIO()
        image.thumbnail(
            (width, height),
            Image.ANTIALIAS
        )
        image.save(
            imagefile,
            **save_kwargs
        )
        return imagefile
def process_image ( self , image , image_format , save_kwargs , width , height ) : imagefile = BytesIO ( ) image . thumbnail ( ( width , height ) , Image . ANTIALIAS ) image . save ( imagefile , * * save_kwargs ) return imagefile
Return a BytesIO instance of `image` that fits in a bounding box.

        Bounding box dimensions are `width`x`height`.
Return a BytesIO instance of image that fits in a bounding box .