From 427b5e765a7f4b629eec0ea8dfd13ae34a8964d8 Mon Sep 17 00:00:00 2001 From: Thibault Richy Date: Tue, 12 Mar 2019 15:26:46 +0100 Subject: [PATCH] Fix generate BR --- app/Traits/GenerateBR.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Traits/GenerateBR.php b/app/Traits/GenerateBR.php index 54b1a30..91f0ed2 100644 --- a/app/Traits/GenerateBR.php +++ b/app/Traits/GenerateBR.php @@ -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)); }