Skip to content
Permalink
Browse files

docstring

  • Loading branch information
ralsina committed Jul 19, 2016
1 parent d566ee3 commit 9714822a535305bc2c8410072ce251a8509c1a59
Showing with 1 addition and 2 deletions.
  1. +1 −2 nikola/image_processing.py
@@ -58,15 +58,14 @@ class ImageProcessor(object):
image_ext_list_builtin = ['.jpg', '.png', '.jpeg', '.gif', '.svg', '.svgz', '.bmp', '.tiff']

def _fill_exif_tag_names(self):
# Convert whitelisted tag names to numeric values
"""Connect EXIF tag names to numeric values."""
if not EXIF_TAG_NAMES:
for ifd in piexif.TAGS:
for tag, data in piexif.TAGS[ifd].items():
EXIF_TAG_NAMES[tag] = data['name']

def filter_exif(self, exif, whitelist):
"""Filter EXIF data as described in the documentation."""

self._fill_exif_tag_names()
exif = exif.copy() # Don't modify in-place, it's rude

0 comments on commit 9714822

Please sign in to comment.