pytoolbox.multimedia.image.PIL module¶
-
pytoolbox.multimedia.image.PIL.
get_orientation
(image, orientation_tag=274, no_exif_default=None, no_key_default=None)[source]¶
-
pytoolbox.multimedia.image.PIL.
apply_orientation
(image, get_orientation=<function get_orientation>, sequences={None: [], 1: [], 2: [0], 3: [3], 4: [1], 5: [0, 2], 6: [4], 7: [1, 2], 8: [2]})[source]¶ Credits: https://stackoverflow.com/questions/4228530/pil-thumbnail-is-rotating-my-image.