From eedd9caa069692312acaaa1dc9ff8c8dc9b12432 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 10 Jul 2006 19:37:02 +0000 Subject: [PATCH] encode thumb requested size into thumb filename (so if you ask for thumbs at different sizes u get different files). the SUGGESTION is to ALWAYS create things at a standard size (should make that a config item) unless you have very special needs. SVN revision: 23824 --- src/bin/e_thumb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_thumb_main.c b/src/bin/e_thumb_main.c index 4df01cf11..6bb73ea4b 100644 --- a/src/bin/e_thumb_main.c +++ b/src/bin/e_thumb_main.c @@ -243,7 +243,8 @@ _e_thumb_generate(E_Thumb *eth) td[3] = 0; snprintf(dbuf, sizeof(dbuf), "%s/%s", _thumbdir, td); - snprintf(buf, sizeof(buf), "%s/%s/%s.thm", _thumbdir, td, id + 3); + snprintf(buf, sizeof(buf), "%s/%s/%s-%ix%i.thm", + _thumbdir, td, id + 3, eth->w, eth->h); free(id); free(td);