Fix generate BR

This commit is contained in:
Thibault Richy 2019-03-12 15:26:46 +01:00
parent 5364b25eb4
commit 427b5e765a

View file

@ -42,13 +42,13 @@ trait GenerateBR {
imagecolortransparent($ImageFond, $white);
imagecopy($mask, $ImageFond, 743, 365, 0, 0, imagesx($ImageFond), imagesy($ImageFond));
} else {
$ImageFond = imagecreate(185, 27);
$ImageFond = imagecreate(195, 27);
$box1 = imagettfbbox(7, 0, $arial, $text);
$white = imagecolorallocate($ImageFond, 255, 255, 255);
$black = imagecolorallocate($ImageFond, 0, 0, 0);
$this->imagettftextSp($ImageFond , 7 , 0, 5, 23, $black, $arial, $text, 0.01);
$this->imagettftextSp($ImageFond , 7 , 0, 5, 23, $black, $arial, $text, 0);
imagecolortransparent($ImageFond, $white);
imagecopy($mask, $ImageFond, 723, 365, 0, 0, imagesx($ImageFond), imagesy($ImageFond));
imagecopy($mask, $ImageFond, 713, 365, 0, 0, imagesx($ImageFond), imagesy($ImageFond));
}