getMessage(); } /* | --------------------------------------------- | IMAGE PROCESS | --------------------------------------------- */ // Resize thumbnail with adaptive mode. $thumb->adaptiveResize($_GET["width"], $_GET["height"]); // Check for rotation value. if (isset($_GET["rotation"])) { // Check for display mode. switch($_GET["rotation"]) { case "no": break; case "rotate-cw": $thumb->rotateImage('CW'); break; case "rotate-ccw": $thumb->rotateImage('CCW'); break; } } // Output generated thumbnail. $thumb->show();