or eg By default a small image is upsized. To render the image unchanged, append '+noscale', thus: eg */ $_E107['minimal'] = TRUE; require_once("../class2.php"); require_once(e_HANDLER."resize_handler.php"); if (e_QUERY) { $tmp = explode('+',rawurldecode(e_QUERY)); if(strpos($tmp[0], '/') === 0 || strpos($tmp[0], ":") >= 1) { $source = $tmp[0]; // Full path to image specified } else { $source = "../".str_replace('../','',$tmp[0]); } if (!$source) { echo "No image name.
"; exit; } $newsize = intval($tmp[1]); if (($newsize < 5) || ($newsize > 4000)) // Pretty generous limits { echo "Bad image size: {$newsize}
"; exit; } $opts = varset($tmp[2],'upsize'); if(!resize_image($source, 'stdout', $newsize, $opts)) { $source = $tp->toDB($source); echo "Couldn't find: {$source}
"; } }