My personal blog. https://blog.airikr.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
477 B

<?php
include_once('site-settings.php');
header('Cache-Control: max-age=604800');
$value = $_GET['str'];
$size = min(max(intval(32), 20), 500);
$icon = new \Jdenticon\Identicon(array(
'value' => $value,
'size' => $size,
'style' => [
'backgroundColor' => 'transparent',
'colorLightness' => [.4, .8],
'grayscaleLightness' => [.3, .9],
'colorSaturation' => .7,
'grayscaleSaturation' => .4,
'padding' => 0
]
));
$icon->displayImage('svg');
?>