You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible workaround:
PIL Library introduced PIL.ImageOps.exif_transpose(image)->Image method that deals with it properly.
The least invasive workaround is to add such method call somewhere in ImageProcessor:
from PIL import ImageOps
class CustomImageProcessor(ImageProcessor):
def get_image(self, stream, **kwargs):
image = super(CustomImageProcessor, self).get_image(stream, **kwargs)
return ImageOps.exif_transpose(image)
Need to implement automatic orientation adjustment whenever Orientation EXIF tag is present on JPEG and TIFF formats.
The text was updated successfully, but these errors were encountered: