Exemplo n.º 1
0
function ic2_finish($filepath, $thumb, $params, $force)
{
    global $thumbnailer;
    extract($params);
    if ($thumb == 0) {
        ic2_display($filepath, $params);
    } else {
        $thumbpath = $thumbnailer->convert($size, $md5, $mime, $width, $height, $force);
        if (PEAR::isError($thumbpath)) {
            ic2_error('x02', $thumbpath->getMessage());
        }
        ic2_display($thumbpath, $params);
    }
}
Exemplo n.º 2
0
function ic2_finish($fileurl, $thumb, $params, $force, $anigif = false, $gif_caution = false)
{
    global $thumbnailer;
    extract($params);
    if ($thumb == 0) {
        ic2_display($fileurl, $params);
    } else {
        $thumburl = $thumbnailer->convert($size, $md5, $mime, $width, $height, $force, $anigif, $gif_caution);
        if (PEAR::isError($thumburl)) {
            ic2_error('x02', $thumburl->getMessage());
        }
        ic2_display($thumburl, $params);
    }
}