def resize ( self ) : resized_size = self . get_resized_size ( ) if not resized_size : return self . image = self . image . resize ( resized_size , Image . ANTIALIAS )
save image after resizing python
Get target size for a cropped image and do the resizing if we got anything usable .
def resize(self):
        """
        Get target size for a cropped image and do the resizing if we got
        anything usable.
        """
        resized_size = self.get_resized_size()
        if not resized_size:
            return

        self.image = self.image.resize(resized_size, Image.ANTIALIAS)