réorg
This commit is contained in:
@@ -51,7 +51,12 @@ $img_h = $height+(2*$bandeau);
|
||||
// création d'une image plus haute pour inclure bandeaux haut et bas
|
||||
$img = imagecreatetruecolor($img_w, $img_h);
|
||||
|
||||
blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau);
|
||||
$paramHeader = blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau);
|
||||
|
||||
imagefilledrectangle($img, 0, $bandeau, $width, $bandeau + $height, $paramHeader[2]);
|
||||
|
||||
imagefilledrectangle($img, 0, 0, 0, $img_h, $paramHeader[2]);
|
||||
imagefilledrectangle($img, $img_w-1, 0, $img_w-1, $img_h, $paramHeader[2]);
|
||||
|
||||
imagepng($img, DATA_PATH.'/hashes/'.$the_block->hash.'.png');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user