chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3136c3
)
m.images: don't display exif tags if there is no exif present.
author
Jelmer Vernooij
<jelmer@jelmer.uk>
Thu, 21 Dec 2017 22:50:21 +0000
(23:50 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 21 Dec 2017 22:50:21 +0000
(23:50 +0100)
pelican-plugins/m/images.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/images.py
b/pelican-plugins/m/images.py
index b8e1217615c1548eb1c5079ea565da54aeccc894..0e7a4e15e84f9e053f147e607733dbaffd543dad 100644
(file)
--- a/
pelican-plugins/m/images.py
+++ b/
pelican-plugins/m/images.py
@@
-185,7
+185,7
@@
class ImageGrid(rst.Directive):
im = PIL.Image.open(absuri)
# Get EXIF info, if it's there
- if hasattr(im, '_getexif'):
+ if hasattr(im, '_getexif')
and im._getexif() is not None
:
exif = {
PIL.ExifTags.TAGS[k]: v
for k, v in im._getexif().items()