From 1fb1dff47f915638f052f00a970be38d91827c87 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Wed, 17 Feb 2016 10:38:17 +0100 Subject: [PATCH] [fix] embed thumbnail size in their filename (fix #19) --- prosopopee/prosopopee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 1bfc3ea..8340078 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -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)