function create_thumbnail() { global $img, $Pivot_Vars; $thumb = new Image($Pivot_Vars['crop'], $Pivot_Vars['crop_w'], $Pivot_Vars['crop_h'], $Pivot_Vars['crop_x'], $Pivot_Vars['crop_y'], $Pivot_Vars['type']); $ext = strtolower($img->ext); if ($ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png') { gd_crop($thumb); } else { echo "This file extension is not supported, please try JPG, GIF or PNG"; print_module_footer(); } }
function create_thumbnail() { global $img; //echo "<pre>\n"; print_r($_GET); echo "</pre>"; $thumb = new Image($_GET['crop'], $_GET['crop_w'], $_GET['crop_h'], $_GET['crop_x'], $_GET['crop_y'], $_GET['type']); $ext = strtolower($img->ext); if ($ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png') { gd_crop($thumb); } else { echo __("This file extension is not supported, please try JPG, GIF or PNG"); print_module_footer(); } }