Commit fac8b9a9 authored by fred's avatar fred
Browse files

thumbnail gif files to png files

parent eefd32c3
......@@ -17,6 +17,8 @@ def thumbnail(image, size='100x100'):
# defining the filename and the miniature filename
filehead, filetail = os.path.split(image.path)
basename, format = os.path.splitext(filetail)
if format == '.gif':
format = '.png'
miniature = basename + '__' + size + format
filename = image.path
miniature_filename = os.path.join(filehead, miniature)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment