Basically I\'m trying to be able to rotate images via user interface, however I\'ve noticed that the image quality severely decreases upon each rotation. Does anyone know ho
rotated_small = photo_small.rotate(angle, resample=Image.BICUBIC, expand=True)
This tells it to use the highest quality interpolation algorithm that it has available, and to expand the image to encompass the full rotated size instead of cropping. The documentation does not say what color the background will be filled with.