View Full Version : 'On the Fly' Auto Thumbnailer using GD Library

04-14-2007, 08:20 AM
This update correct a bug in the product_thumb Catalog file.

Without this fix you will not be able to see the product images but just create them.

Here is the fix:

// create thumbnail directory if does not exist
//$tmp_path = str_replace(basename($filename), '', $filename);
//if (is_dir($tmp_path) == false) mkdir($tmp_path);

function modify_tn_path($file)

As you can see the $filename variable isn't yet assigned in this point of the code and so the code fails.

Sorry for my english I hope you have understood what I have made. However I have attached the patched file so you have just to replace this in your catalog (or root) directory.


More... (http://www.oscommerce.com/community/contributions,2226)