Beranda Pemrograman CodePaste PHP write text to image, Add text to image PemrogramanCodePaste PHP write text to image, Add text to image Penulis ariefendi PHP sample <?php $img = './invoice.png'; $font = './roboto.ttf'; $font_size = 20; $text_rotate = 0; //rotate / vertical text $text = 'Lamongan Indonesia'; $image = imageCreateFromPng($img); $text_color = imagecolorallocate($image, 0, 0, 0); //black $width = imagesx($image); //image width $height = imagesy($image); //image height //normal text align $percent_align_left = 10; //10% from left $vertical_location = 20; imagettftext($image, $font_size, $text_rotate, ($width-($width*$percent_align_left/100)), $vertical_location, $text_color, $font, $text); //Create text align right $type_space1 = imagettfbbox(21, 0, $font, $text); $percent_align_right = 10; //location 10% from right imagettftext($image, $font_size, $text_rotate, ($width-($width*$percent_align_right/100))-$type_space1[2], $vertical_location, $text_color, $font, $text); header('Content-type: image/png'); //header('Content-Disposition: attachment; filename="filessss.png"'); //force download $img = imagepng($image,NULL); imagedestroy($img); Php write text to image Php add text to image Php menambahkan text ke gambar php menulis text ke gambar php edit gambar BERITA TERKAITDARI PENULIS Android Example retrofit upload file CodePaste Php auto create mail on cpanel whm, Php membuat email otomatis di cpanel whm CodePaste Auto create subdomain php cpanel, Membuat subdomain otomatis di cpanel whm Android Java android studio generate qr CodePaste Php format size (kb, mb, gb)