5 ~ 50 100을 저장하지만 작은 텍스트 만 표시하거나 글꼴을 변경하는 방법을 변경할 때마다 결과가 변경되지 않으며 결과도 $string = $user['name']
입니다. 이 줄 인쇄 전체 이름 우리는 fb 그래프 api의 첫 번째 이름 만 도움을 주시기 바랍니다. 아래PHP Gd에서 글꼴 및 글꼴 크기를 변경하는 방법?
내 코드 :
$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);
서식을 주로 편집해야합니다. – nyedidikeke