View Full Version : Automatic Thumbnail Creator v1.0

08-13-2007, 06:00 PM
If you have a bunch of files that have spaces in their filenames, you'll find this contribution won't work. The problem is the getimagesize() function doesn't like filenames with spaces.

Replace the source image parameter in all calls to the functions tep_use_resampled_image (admin) or tep_image_resample with tep_output_string(<img variable>):

/includes/functions/html_output.php, around line 80 (the HTML image wrapper function):
$src = tep_image_resample(tep_output_string($src),$width, $height);

You probably don't need to do this if you don't plan to have images with spaces or you will never upload the pictures manually using FTP and an import function..

I didn't change the distro at all, but FYI only.

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