Browse Source

Rename the copy exif setting.

pull/9/merge
Simon 13 years ago
parent
commit
488da4c497
  1. 2
      sigal/gallery.py
  2. 6
      sigal/settings.py
  3. 2
      tests/sample/sigal.conf.py

2
sigal/gallery.py

@ -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)

6
sigal/settings.py

@ -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

2
tests/sample/sigal.conf.py

@ -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"

Loading…
Cancel
Save