Contributions

Features (Category Index)
Search: 

Automatic Thumbnail Creator v1.0

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)

Expand All / Collapse All

Use tep_output_string. 13 Aug 2007

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.

Automatic Thumbnail Creator (Auto Delete Mod) Patrick Knoell 30 Jan 2004
Automatic Thumbnail Creator 8 Lee Nielsen (MaxiDVD) 22 Jan 2004
Automatic Thumbnail Creator, Admin fix Lee Nielsen (MaxiDVD) 22 Jan 2004
Automatic Thumbnail Creator MS2 David Radford 29 Dec 2003
Automatic Thumbnail Image Creator David Radford 12 Jul 2003
Automatic Thumbnail Image Creator David Radford 20 Feb 2003
Automatic Thumbnail Creator David Radford 15 Feb 2003
Automatic Thumbnail Creator v1.0 David Radford 28 Dec 2002

Note: Contributions are used at own risk.