Permalink
Browse files

Add GIF support — Fixes #140

  • Loading branch information...
Rémy HUBSCHER
Rémy HUBSCHER committed Dec 15, 2015
1 parent 6e279bb commit 7f3ee7a348d6058529e2fe7f230c25a5424a57ec
Showing with 3 additions and 2 deletions.
  1. +1 −1 sigal/gallery.py
  2. +1 −1 sigal/image.py
  3. +1 −0 tox.ini
View
@@ -145,7 +145,7 @@ class Image(Media):
"""Gather all informations on an image file."""
type = 'image'
extensions = ('.jpg', '.jpeg', '.png')
extensions = ('.jpg', '.jpeg', '.png', '.gif')
@cached_property
def date(self):
View
@@ -66,7 +66,7 @@ def generate_image(source, outname, settings, options=None):
logger = logging.getLogger(__name__)
if settings['use_orig']:
if settings['use_orig'] or source.endswith('.gif'):
utils.copy(source, outname, symlink=settings['orig_link'])
return
View
@@ -1,5 +1,6 @@
[tox]
envlist = py{27,33,34,35}-pillow{30,31},report,check
skip_missing_interpreters = True
[testenv]
commands = py.test --cov sigal --cov-report term-missing

0 comments on commit 7f3ee7a

Please sign in to comment.