Skip to content
Permalink
Browse files
fix obvious bug
  • Loading branch information
ralsina committed Jul 18, 2016
1 parent 794495e commit 5c9d11e321b819c883252bc100703e8bae8a5489
Showing with 3 additions and 1 deletion.
  1. +3 −1 nikola/image_processing.py
@@ -61,7 +61,7 @@ def _fill_exif_tag_names(self):
# Convert whitelisted tag names to numeric values
if not EXIF_TAG_NAMES:
for ifd in piexif.TAGS:
for tag, data in ifd.items():
for tag, data in piexif.TAGS[ifd].items():
EXIF_TAG_NAMES[tag] = data['name']

def filter_exif(self, exif, whitelist):
@@ -80,6 +80,8 @@ def filter_exif(self, exif, whitelist):

# Scenario 3: keep some
for k in exif:
if type(exif[k]) != dict:
pass # At least thumbnails have no fields
if k not in whitelist:
exif.pop(k) # Not whitelisted, remove
elif k in whitelist and whitelist[k] == '*':

0 comments on commit 5c9d11e

Please sign in to comment.