Change dimension

This commit is contained in:
Michael RICOIS 2018-03-08 17:30:25 +01:00
parent cab5635c8f
commit 887c687dd1

View File

@ -131,12 +131,12 @@ class GenerateBarcode
$white = ImageColorAllocate($im, 0xff, 0xff, 0xff);
imagefilledrectangle($im, 0, 0, $width, $height, $white);
imagettftext($im, 30, 0, 10, 50, $black, $font, $ref);
imagettftext($im, 40, 0, 10, 50, $black, $font, $ref);
if ($id_product_attribute === null) {
$result = imagegif($im, $this->directory.'/id-'.$id_product.'-0.gif');
} else {
imagettftext($im, 12, 0, 65, 50 , $black, $font, $attribute_ref);
imagettftext($im, 12, 0, 80, 50 , $black, $font, $attribute_ref);
$result = imagegif($im, $this->directory.'/id-'.$id_product.'-'.$id_product_attribute.'.gif');
}