additional_plugins/serendipity_event_gravatar/ycon/ycon.image.php
Thomas Hochstein 686a66aa05 Sync gravatar in core and Spartacus.
Bump version to 1.63.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-02 17:59:04 +02: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;
}
?>