From e171f5847b97a2d7adc4fe7d84b28eac388d8455 Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Fri, 3 Jan 2014 00:41:57 +0100 Subject: [PATCH] Fix exif data not read from .JPEG files (fix #58). --- sigal/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigal/image.py b/sigal/image.py index 421cc60..6a4e286 100644 --- a/sigal/image.py +++ b/sigal/image.py @@ -182,7 +182,7 @@ def get_exif_tags(source): logger = logging.getLogger(__name__) - if not '.jpg' in source.lower(): + if os.path.splitext(source)[1].lower() not in ('.jpg', '.jpeg'): return (None, None) try: