Esempio n. 1
0
    }
}
// ******************************************** End Class *****************************************************
$p_img = $_GET["img"];
$model = $_GET["model"];
$style = $_GET["style"];
if ($p_img == '' || $model == '') {
    return;
}
header('Content-Type: image/jpeg');
$image = new SimpleImage();
$style = strtolower($style);
switch ($style) {
    case 'tmb':
        $image->load("models/{$model}/{$p_img}");
        $image->SetWatermark();
        $image->resizeToHeight(100);
        $image->output();
        break;
    case 'profile':
        //$image->load("models/$model/$p_img");
        $image->load("models/{$p_img}");
        $image->resizeToHeight(407);
        $image->crop(237);
        $image->SetWatermark();
        $image->output();
        break;
    case 'main':
        //$image->load("models/$model/$p_img");
        $image->load("models/{$p_img}");
        $image->resizeToHeight(402);