This is a discussion on 'On the Fly' Auto Thumbnailer using GD Library within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Based on nate_02631's 15 Dec 2005 Much like new tep_image() function in catalog/includes/functions/html_output.php Just replace ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Based on nate_02631's 15 Dec 2005 Much like new tep_image() function in catalog/includes/functions/html_output.php Just replace tep_image() function in catalog/admin/includes/functions/html_output.php with function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { // Set default image variable and code $image = 'r / $height = $image_size[1];br / }br / br / // Scale the image if larger than the set width or heightbr / if ($image_size[0] > $width || $image_size[1] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = ' return $image; } More...
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'On the Fly' Auto Thumbnailer using GD Library | michael_s | New osCommerce Contributions | 0 | 03-11-2007 11:00 AM |
| JPG Thumbnailer | michael_s | New osCommerce Contributions | 0 | 02-22-2007 10:01 AM |
| Dynamic Images / Auto Thumbnailer / Zoom Image Module? | cTak | osCMax v2 Customization/Mods | 2 | 01-16-2006 11:56 AM |
| On the fly thumbnailer | extremest | osCMax v1.7 Discussion | 1 | 03-26-2005 11:47 AM |
| Auto Reorder | KCount | osCommerce 2.2 Modification Help | 1 | 03-25-2005 04:57 AM |