Rename the copy exif setting.

This commit is contained in:
Simon
2012-12-15 00:17:33 +01:00
parent 7d3e7bb207
commit 488da4c497
3 changed files with 5 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ class Gallery:
fit=self.settings['thumb_fit'],
quality=self.settings['jpg_quality'])
if self.settings['exif']:
if self.settings['copy_exif']:
copy_exif(f, im_name)

View File

@@ -34,7 +34,7 @@ _DEFAULT_CONFIG = {
'keep_orig': False,
'orig_dir': 'original',
'jpg_quality': 90,
'exif': False,
'copy_exif': False,
'copyright': '',
'ext_list': ['.jpg', '.jpeg', '.JPG', '.JPEG', '.png'],
'theme': 'colorbox'
@@ -68,11 +68,11 @@ def read_settings(filename=None):
logger.warning("The %s setting should be specified with the "
"largest value first.", key)
if settings['exif']:
if settings['copy_exif']:
try:
import pyexiv2 # NOQA
except ImportError:
settings['exif'] = False
settings['copy_exif'] = False
logger.error("Error: install pyexiv2 module to use exif metadatas")
return settings

View File

@@ -35,7 +35,7 @@ keep_orig = True
# jpg_quality = 90
# keep exif metadatas in output image (default: False)
exif = True
copy_exif = True
# add a copyright text on the image (default: '')
copyright = "An example copyright message"