interpim Posted December 26, 2007 Share Posted December 26, 2007 Hi all... Im not sure this can be done, but I don't even know where to start. What I am trying to do is create a program that will let folks create a signature picture online using their own images etc. I have gotten so far as the upload, cropping, and resizing of the original image complete... But what I want to do now is have it so that the user can type some text into a form, select the font and text color they want to use, then position that text where they want on that image, and output the final image for them to download. If someone could point me in the right direction that would be greatly appreciated. Thanks and Merry Christmas Quote Link to comment https://forums.phpfreaks.com/topic/83269-placeable-text-in-image/ Share on other sites More sharing options...
Daleeburg Posted December 26, 2007 Share Posted December 26, 2007 I have done very little with this, but I believe that this would be a good place to start http://us2.php.net/manual/en/function.imagestring.php ~D Quote Link to comment https://forums.phpfreaks.com/topic/83269-placeable-text-in-image/#findComment-423636 Share on other sites More sharing options...
interpim Posted December 26, 2007 Author Share Posted December 26, 2007 Thanks for the redirect Quote Link to comment https://forums.phpfreaks.com/topic/83269-placeable-text-in-image/#findComment-423639 Share on other sites More sharing options...
interpim Posted December 27, 2007 Author Share Posted December 27, 2007 Hrmmm... I am getting this error now Warning: imagecolorallocate(): supplied argument is not a valid Image resource in E:\wamp\www\IMG_RESIZE\crop-resize-gd\last_step.php on line 64 Warning: imagestring(): supplied argument is not a valid Image resource in E:\wamp\www\IMG_RESIZE\crop-resize-gd\last_step.php on line 65 <div id="completedImage"> <?php echo "<img src=\"" . $destinationFile . "\" id=\"theImage\" alt=\"Final Image\" />"; ?> </div> <!-- completedImage --> <!-- my crap added here --> <?php $string == "TEST STRING"; $color == imagecolorallocate($destinationFile,0,0,255); imagestring($destinationFile,5,0,0,$string,$color); ?> <!-- end of my crap --> <?php } else { ?> <div class="info"> <h1>Error</h1> <p>There was an error.</p> </div> Quote Link to comment https://forums.phpfreaks.com/topic/83269-placeable-text-in-image/#findComment-423784 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.