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 ----------------- Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/ 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" /> Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646712 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 Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646716 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 >>>>>>>>>>>>>>>>>>>>> Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646723 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 Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646753 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); ?> Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646795 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 Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646949 Share on other sites More sharing options...
harry-tom Posted September 22, 2008 Author Share Posted September 22, 2008 please i want help here Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-647370 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. Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-655367 Share on other sites More sharing options...
ballhogjoni Posted October 2, 2008 Share Posted October 2, 2008 its called photoshop Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-655370 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? Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-655371 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. Link to comment https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-655449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.