Skip to content

Commit 9df4dd6

Browse files
authored
fix readme exaple error (#149)
1 parent 54dcb07 commit 9df4dd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)