Example #1
0
function rawman_createimage($raw, $image, $opt)
{
    $annotate = rawman_replace(IMAGE_ANN, array('year' => isset($opt['year']) ? $opt['year'] : date('Y'), 'number' => sprintf('%04d', $opt['number'])));
    /*
     ** Others
     */
    $opt['cnvpre'] .= ' -geometry ' . IMAGE_SIZE;
    if (!empty($annotate)) {
        $opt['cnvpost'] .= ' -pointsize 11 -gravity southeast' . ' -stroke "#000c" -strokewidth 2 -annotate 0 "' . $annotate . '"' . ' -stroke  none   -fill white    -annotate 0 "' . $annotate . '"';
    }
    $opt['cnvpost'] .= ' -quality 85';
    rawman_createjpg($raw, $image, $opt);
}
Example #2
0
function rawman_html($name, $params)
{
    return rawman_replace(rawman_readtemp($name), $params);
}