File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ This example shows how to use the library to correct the orientation of an image
161161.. code-block :: python
162162
163163 import exifread
164- from Pillow import Image
164+ from PIL import Image
165+ import logging
165166
166167 def _read_img_and_correct_exif_orientation (path ):
167168 im = Image.open(path)
@@ -170,6 +171,7 @@ This example shows how to use the library to correct the orientation of an image
170171 tags = exifread.process_file(f, details = False )
171172 if " Image Orientation" in tags.keys():
172173 orientation = tags[" Image Orientation" ]
174+ logging.basicConfig(level = logging.DEBUG )
173175 logging.debug(" Orientation: %s (%s )" , orientation, orientation.values)
174176 val = orientation.values
175177 if 5 in val:
You can’t perform that action at this time.
0 commit comments