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
This commit is contained in:
Carsten Haitzler 2006-07-10 19:37:02 +00:00
parent 3c612bf4e8
commit eedd9caa06
1 changed files with 2 additions and 1 deletions

View File

@ -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);