Merge pull request #21 from julienmalik/fix19

[fix] embed thumbnail size in their filename (fix #19)
This commit is contained in:
Laurent Peuch 2016-02-17 11:20:59 +01:00
commit e21a6bf5c3

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)