harry-tom Posted September 20, 2008 Share Posted September 20, 2008 Hello, this is my first sharing and i really need help ??? i have a php script that echo gif images "it is a letters" where each letter show in one image i need to merge all letters "images" to appear for users as one word "one image" images are gif ----------------- Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 20, 2008 Share Posted September 20, 2008 gd mate php function famous example for ya img.php <?php header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?> link is... <img src="img.php" /> Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 20, 2008 Share Posted September 20, 2008 please read all this page ok...... http://www.ciganda.com/graficos/PHP%20GD%20Library.htm Quote Link to comment Share on other sites More sharing options...
harry-tom Posted September 20, 2008 Author Share Posted September 20, 2008 gd mate php function famous example for ya img.php <?php header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?> link is... <img src="img.php" /> thanks but this not answer for my question this code show image with a text but my question is how can i merge many images to appear as on image like this i want the three images to be on image any on understand me >>>>>>>>>>>>>>>>>>>>> Quote Link to comment Share on other sites More sharing options...
harry-tom Posted September 21, 2008 Author Share Posted September 21, 2008 Is the problem is very difficult or i am a stupid please i need help Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 21, 2008 Share Posted September 21, 2008 why not add three images here mate... were the words were.............. <?php header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "<img src='img1.png' /> <img src='img2.png' /> <img src='img3.png' />", $txt_color); ImagePng ($img_handle); ?> Quote Link to comment Share on other sites More sharing options...
harry-tom Posted September 21, 2008 Author Share Posted September 21, 2008 why not add three images here mate... were the words were.............. <?php header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "<img src='img1.png' /> <img src='img2.png' /> <img src='img3.png' />", $txt_color); ImagePng ($img_handle); ?> It is not give me picture it give a black rectangle and when i save the pic it saved as php not as png Quote Link to comment Share on other sites More sharing options...
harry-tom Posted September 22, 2008 Author Share Posted September 22, 2008 please i want help here Quote Link to comment Share on other sites More sharing options...
GolfT Posted October 2, 2008 Share Posted October 2, 2008 Hi, you can't merge gif animate with imagecopymerge command because gif animate is a image have multiple frame (multiple image merge). You can use Gif Split and Gif Merge function to apply with this case. see more information at here http://www.myfineday.com/2008/10/02/php-how-to-merge-gif-animate/ Good luck. Quote Link to comment Share on other sites More sharing options...
ballhogjoni Posted October 2, 2008 Share Posted October 2, 2008 its called photoshop Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 2, 2008 Share Posted October 2, 2008 Was thinking the same thing. Does it need to be done on the fly? Quote Link to comment Share on other sites More sharing options...
GolfT Posted October 2, 2008 Share Posted October 2, 2008 --- its called photoshop Yes, it use photoshop concept. --- Does it need to be done on the fly? I think it depend on your project design. Quote Link to comment 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.