Use highest quality interpolation and expand image so as not to crop borders

This commit is contained in:
Roberto Rosario
2015-06-08 23:45:55 -04:00
parent 87d8504cfb
commit 31985e7160

View File

@@ -247,7 +247,7 @@ class TransformationRotate(BaseTransformation):
def execute_on(self, *args, **kwargs):
super(TransformationRotate, self).execute_on(*args, **kwargs)
return self.image.rotate(360 - self.degrees)
return self.image.rotate(360 - self.degrees, resample=Image.BICUBIC, expand=True)
class TransformationZoom(BaseTransformation):