Forum Moderators: coopster
Ok, I need a script that will allow users to upload a specific size image that will be placed on top of a pre-existing image, along with text from a form, all to create an id of sorts. it should be saved as a jpeg when finished. not sure how to go about this, so absolutely any help would be appreciated.
Aloha
[uk3.php.net...]
[uk3.php.net...]
[uk3.php.net...]
[uk3.php.net...]
you may need a few more but they will get you on the right track, if you want to view the page where the above functions and other image functions can be found goto the below url.
[uk3.php.net...]
oh and it is worth mentioning you will need the gd image library installed/enabled in your php.ini file in order to use the gd functions.
HTH
ChrisW
<?php
header("Content-type: image/png");
$string = $_POST['text'];
$im = imagecreatefrompng("CITIZEN_ID_CARD.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
print '<img src="text_merge.php?text=text">';
?>