function actionThumbnailSmall() { // Get the image name if (!isset($_GET['id'])) { die('No image selected.'); } // Create a new image object $img = new YDFSImage(YDConfig::get('dir_uploads', '../uploads') . '/' . $_GET['id']); // Output the thumbnail $img->outputThumbnail(48, 48); }
function actionThumbnail6() { $img = new YDFSImage('fsimage.jpg'); $img->outputThumbnail(100, 100, false, true); }
function actionThumbnail5() { $img = new YDFSImage('fsimage.gif'); $img->outputThumbnail(150, 110); }
function actionThumbnail3() { $img = new YDFSImage('fsimage.jpg'); $img->outputThumbnail(150, 110, false); }
function actionThumbnailSmall() { if (!isset($_GET['id'])) { die('No image selected.'); } $img = new YDFSImage(YDConfig::get('dir_uploads', '../uploads') . '/' . $_GET['id']); $img->outputThumbnail(48, 48); }