Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  'On the Fly' Auto Thumbnailer using GD Library

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
Fixed the internal server error 500 that occurs if fastcgi is used on a webserver.

Therefore, I have replaced two lines of the new file product_thumb.php:
header("Status: 304 Not Modified");
header($httpProtocol . " 304 Not Modified");

With the following code:
if (substr(php_sapi_name(), 0, 3) == 'cgi') {
header("Status: 304 Not Modified");
} else {
header($httpProtocol . " 304 Not Modified");
}

Fore more details about this bug see http://bugs.php.net/bug.php?id=36705
This fixes a minor issue with the palette.

You can now set the transparency color via the background matte color. You will want to pick something that's not in the palette so that you don't have too much becoming transparent.
This is based on On the fly Auto Thumbnailer 2.4 fix 3.

For some reason, GIF files were blocked from using $use_truecolor. Yes, I'm aware that GIF only supports 256 colours; however, the palette can be selected from a full 24bit selection. As a result, previous versions would not resample GIF images properly and you would see blocky edges.

I basically reallowed truecolour use from GIF images (you'll notice a big difference if you're resampling). I also put in more flexible transparency support. (To do this, I had to move the loading of the images to slightly earlier in the code.)

If you have transparent GIF's or any GIF's for that matter, try this out and see if you notice a difference.

(note: only chaged the one for the main catalog, not the one in the admin dir)

Feedback to
jgryn AT
cse DOT
yorku DOT
ca
   Posted on: 09/07/2008     See contribution details Request Installation with Paid service