I will change 5 to 50 100 saved but result not changing anything everytime showing small text only and how to change font also and $string = $user['name']
; this line printing full name we want only first name of fb graph api please help.
My code as below:
$barcode1 = imagecreatefrompng($image_bg);
imagecopy($fullimage, $im1, 35, 74, 0, 0, 365, 317);
imagecopyresampled($fullimage, $barcode1, 0, 0, 0, 0, imagesx($fullimage), imagesy($fullimage), imagesx($barcode1), imagesy($barcode1));
$color = imagecolorallocate($fullimage, 0, 0, 0);
$string = $user['name'];
$fontSize = 5;
$x = 95;
$y = 344;
$font = 'arial.ttf';
imagestring($fullimage, $fontSize, $x, $y, $string, $color);
$imagename = date("Ymd") . uniqid() . uniqid() . uniqid() . '.jpg';
imagejpeg($fullimage, 'Apps/If_You_Produce/123321/' . $imagename, 100);
$values['user_id'] = $userid;
$values['image_name'] = $imagename;
$db->insert($db_table_name, $values);
You can not use 10,50,100 - http://php.net/manual/en/function.imagestring.php
Only 1-5 (by default)
UPDATE
To be able fully control the font size you might want to use http://php.net/manual/en/function.imagettftext.php
Example (from the same site):