Community Add-Ons
Automatic Thumbnail Creator v1.0
for osCommerce Online Merchant v2.2
Automatically generates thumbnail jpg/png images (under new name) to the size defined in admin. Optionally will maintain
the original image proportions and centre the thumbnail on a backgound colour you set to suit your site.
Requirements GD >= 2.01, PHP >= 4.0.6 Works with osC 2.2 (uses the idea from netpbm contribution)
Legend:
Download
Report
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.
