virgoshyam / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

timthumb cache image path? #388

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I have cache set to TRUE and my cache folder even set to 777 for now.

But when i view image path it still shows the filename and path to the original?

Is it not supposed to show me the path to the cached image instead?

Timthumb settings:

    define ('CACHE_SIZE', 100);             
    define ('CACHE_CLEAR', 20);                 
    define ('CACHE_USE', TRUE);                 
    define ('VERSION', '1.25');                 
    define ('DIRECTORY_CACHE', '../cache');     
    define ('MAX_WIDTH', 5000);                 
    define ('MAX_HEIGHT', 3000);                
    define ('ALLOW_EXTERNAL', FALSE);           
    define ('MEMORY_LIMIT', '128M');                
    define ('MAX_FILE_SIZE', 12582912);         
    define ('CURL_TIMEOUT', 10);        

Issue im having is the url image path is this:

http://mydomain.com/includes/crop.php?src=images/art/urban/alleyway.jpg&h=250&w=
958&q=95

And i thought with Cache enabled it would be this:

http://mydomain.com/cache/a051f7c9e5d039708ac92dece9a07901.jpg

Please tell me if im doing something wrong.

Cheers
John

Original issue reported on code.google.com by johnrama...@gmail.com on 21 Jun 2012 at 1:49

GoogleCodeExporter commented 8 years ago
Also, i just noticed that mydomain.com is a real domain. Sorry for that.

Original comment by johnrama...@gmail.com on 21 Jun 2012 at 1:51

GoogleCodeExporter commented 8 years ago
Hi - TimThumb doesn't change the image path - it just resizes the images. The 
cache directory is there so the image doesn't keep being processed. If the 
image is the new size and there are images in the cache directory then it is 
working correctly.

Original comment by BinaryMoon on 21 Jun 2012 at 9:43