[fix] embed thumbnail size in their filename (fix #19)

This commit is contained in:
Julien Malik 2016-02-17 10:38:17 +01:00
parent c7b1628ee0
commit 1fb1dff47f

View File

@ -89,7 +89,7 @@ class Image(object):
def generate_thumbnail(self, gm_geometry):
thumbnail_name = self.name.split(".")
thumbnail_name[-2] += "-small"
thumbnail_name[-2] += "-%s" % gm_geometry
thumbnail_name = ".".join(thumbnail_name)
source, target = os.path.join(self.base_dir, self.name), os.path.join(self.target_dir, thumbnail_name)