Ian adfb3bc537 consistent plugin usage - gravatar
this and followup commits touches:
    use load_languiage API
    class method parenthesis "\n{\n    <code>\n}\n",
    case break switches,
    consistent boolean usage,
    append css to eventData
    and other cleanups
2016-01-26 14:11:23 +01:00

14 lines
324 B
PHP

<?php
require_once 'ycon.php';
function build_ycon($filename, $seed='',$size=''){
$hash = md5($seed);
$image = ycon($hash, $size, 255, 255, 255);
imagetruecolortopalette($image, false, 64);
// header('Content-type: image/png');
imagepng($image,$filename);
imagedestroy($image);
return true;
}
?>