PDA

View Full Version : 'On the Fly' Auto Thumbnailer using GD Library



michael_s
02-10-2015, 01:41 PM
product_thumb.php updated to work under php 5.4 (and hopefully higher). The change from 5.3 to 5.4 caused the function imagejpeg() to fail. In particular, the second parameter would no longer accept "" in place of null:

original calls:
imagejpeg($src, '', $jpeg_quality);

changed to:
imagejpeg($src, null, $jpeg_quality);

Modified version of product_thumb.php attached.

More... (http://addons.oscommerce.com/info/2226)