4
Automatically

The images will resize if GD library exists, otherwise the original will show.
Example(blocks/latest_news.php):
le="color: #000000"><?php // check to see if GD function exist if (!function_exists ('imagecreatetruecolor')) { $item['item_image'] = $mainImage['image_path']; } else { $item['item_image'] = PUBLISHER_URL . '/thumb.php?src='.$mainImage['image_path'].'&w='.$imgwidth; // No $imgheight for autoheight option }
Thumbnails will save in /cache folder and will clear automatically.
Example(thumb.php):
le="color: #000000"><?php define ('CACHE_SIZE', 250); // number of files to store before clearing cache define ('CACHE_CLEAR', 5); // maximum number of files to delete on each cache clear define ('CACHE_USE', TRUE); // use the cache files? (mostly for testing)
Width and height of images can adjust via block settings (Latest news block).