<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Add Text in an Image</title>
	<atom:link href="http://designgala.com/how-to-add-text-in-an-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://designgala.com/how-to-add-text-in-an-image/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-add-text-in-an-image</link>
	<description>Web Usability, Web Technology, User Experience</description>
	<lastBuildDate>Tue, 15 May 2012 16:54:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mitchell</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-12259</link>
		<dc:creator>Mitchell</dc:creator>
		<pubDate>Sun, 15 Apr 2012 12:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-12259</guid>
		<description>Thanks.

Got problems in beginning, but fixed and working flawlessly.

Here is my code if anyone wants to use.

&lt;?php
header (&quot;Content-type: image/png&quot;);
$string = &quot;YOUR TEXT&quot;;	//YOUR TEXT eg: Hi Mom :)
$imageO = &quot;IMAGE.png&quot;;	//YOUR IMAGE AND LOCATION eg: images/myimage.png
$imageN = &quot;IMAGE2.png&quot;;	//YOUR NEW IMAGE eg: mynewimage.png

//PLEASE NOTE IF YOU HAVE TROUBLE MAKE SURE YOUR OUTPUT IMAGE IS NOT IN A SEPARATE FOLDER, IT WILL OUTPUT TO THE FOLDER OF THE .php FILE

$font = 4;	//YOUR FONT SIZE

$width = imagefontwidth($font) * strlen($string) ;
$height = imagefontheight($font) ;
$im = imagecreatefrompng($imageO);

$x = imagesx($im) / 2;	//PLACEMENT CENTERISH - X
$y = imagesy($im) / 2;	//PLACEMENT CENTERISH - Y

$backgroundColor = imagecolorallocate ($im, 255, 255, 255);
$textColor = imagecolorallocate ($im, 0, 0,0);
imagestring ($im, $font, $x, $y,  $string, $textColor);
imagepng($im,$imageN);	
$w = imagesx($im);
$h = imagesy($im);
//PRINT IMAGE ON SCREEN
echo &quot;&quot;;
echo &quot;&lt;a href=&#039;http://www.mrincworld.com&#039; rel=&quot;nofollow&quot;&gt;M.R. Inc - 2012&lt;/a&gt;&quot;;
?&gt;

Regards
Mitchell</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>Got problems in beginning, but fixed and working flawlessly.</p>
<p>Here is my code if anyone wants to use.</p>
<p>&lt;?php<br />
header (&quot;Content-type: image/png&quot;);<br />
$string = &quot;YOUR TEXT&quot;;	//YOUR TEXT eg: Hi Mom :)<br />
$imageO = &quot;IMAGE.png&quot;;	//YOUR IMAGE AND LOCATION eg: images/myimage.png<br />
$imageN = &quot;IMAGE2.png&quot;;	//YOUR NEW IMAGE eg: mynewimage.png</p>
<p>//PLEASE NOTE IF YOU HAVE TROUBLE MAKE SURE YOUR OUTPUT IMAGE IS NOT IN A SEPARATE FOLDER, IT WILL OUTPUT TO THE FOLDER OF THE .php FILE</p>
<p>$font = 4;	//YOUR FONT SIZE</p>
<p>$width = imagefontwidth($font) * strlen($string) ;<br />
$height = imagefontheight($font) ;<br />
$im = imagecreatefrompng($imageO);</p>
<p>$x = imagesx($im) / 2;	//PLACEMENT CENTERISH &#8211; X<br />
$y = imagesy($im) / 2;	//PLACEMENT CENTERISH &#8211; Y</p>
<p>$backgroundColor = imagecolorallocate ($im, 255, 255, 255);<br />
$textColor = imagecolorallocate ($im, 0, 0,0);<br />
imagestring ($im, $font, $x, $y,  $string, $textColor);<br />
imagepng($im,$imageN);<br />
$w = imagesx($im);<br />
$h = imagesy($im);<br />
//PRINT IMAGE ON SCREEN<br />
echo &quot;&#8221;;<br />
echo &#8220;<a href='http://www.mrincworld.com' rel="nofollow">M.R. Inc &#8211; 2012</a>&#8220;;<br />
?&gt;</p>
<p>Regards<br />
Mitchell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert McGhee &#187; February 15th</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-6880</link>
		<dc:creator>Robert McGhee &#187; February 15th</dc:creator>
		<pubDate>Wed, 15 Feb 2012 21:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-6880</guid>
		<description>[...] Bookmarked How to Add Text in an Image using PHP [...]</description>
		<content:encoded><![CDATA[<p>[...] Bookmarked How to Add Text in an Image using PHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c0nfus3d1</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-6795</link>
		<dc:creator>c0nfus3d1</dc:creator>
		<pubDate>Thu, 08 Dec 2011 01:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-6795</guid>
		<description>Is there anyway to make it placed horizontal center?</description>
		<content:encoded><![CDATA[<p>Is there anyway to make it placed horizontal center?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A.E.</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-6599</link>
		<dc:creator>A.E.</dc:creator>
		<pubDate>Wed, 17 Aug 2011 21:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-6599</guid>
		<description>Yes, sir.
It worked perfectly.
Tried PNG &amp; JPEG ... and they worked correctly.

Thanks alot for sharing this code :)</description>
		<content:encoded><![CDATA[<p>Yes, sir.<br />
It worked perfectly.<br />
Tried PNG &amp; JPEG &#8230; and they worked correctly.</p>
<p>Thanks alot for sharing this code :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-6597</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Wed, 17 Aug 2011 08:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-6597</guid>
		<description>heres a hint after i spent hours trying to get it work also. 
 the above code place into a new file .name it whatever you want .example image.php

then use this on the page where you want to display the image 
echo &quot;&quot;;

it worked for me after hours of scratching my head.</description>
		<content:encoded><![CDATA[<p>heres a hint after i spent hours trying to get it work also.<br />
 the above code place into a new file .name it whatever you want .example image.php</p>
<p>then use this on the page where you want to display the image<br />
echo &#8220;&#8221;;</p>
<p>it worked for me after hours of scratching my head.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MFClock</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-5156</link>
		<dc:creator>MFClock</dc:creator>
		<pubDate>Wed, 01 Jun 2011 03:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-5156</guid>
		<description>works great if you get the image path correct and give imagepng a path to save the file to.</description>
		<content:encoded><![CDATA[<p>works great if you get the image path correct and give imagepng a path to save the file to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2011-04-28 &#8211; The 5th incarnation of Elmer's blog</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-5139</link>
		<dc:creator>links for 2011-04-28 &#8211; The 5th incarnation of Elmer's blog</dc:creator>
		<pubDate>Thu, 28 Apr 2011 16:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-5139</guid>
		<description>[...] How to Add Text in an Image using PHP (tags: php images) [...]</description>
		<content:encoded><![CDATA[<p>[...] How to Add Text in an Image using PHP (tags: php images) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthick</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-5110</link>
		<dc:creator>Karthick</dc:creator>
		<pubDate>Thu, 07 Apr 2011 05:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-5110</guid>
		<description>Thanks alot man, its works great .............</description>
		<content:encoded><![CDATA[<p>Thanks alot man, its works great &#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phatricko</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-5098</link>
		<dc:creator>Phatricko</dc:creator>
		<pubDate>Wed, 30 Mar 2011 02:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-5098</guid>
		<description>It works, you just have to get rid of the space in the first line so it knows that it&#039;s PHP.

So change &quot;&lt; ?php&quot; to &quot;&lt;?php&quot;</description>
		<content:encoded><![CDATA[<p>It works, you just have to get rid of the space in the first line so it knows that it&#8217;s PHP.</p>
<p>So change &#8220;&lt; ?php&quot; to &quot;&lt;?php&quot;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lakshmi kanth raju</title>
		<link>http://designgala.com/how-to-add-text-in-an-image/comment-page-1/#comment-5090</link>
		<dc:creator>lakshmi kanth raju</dc:creator>
		<pubDate>Thu, 24 Mar 2011 14:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.designgala.com/?p=6#comment-5090</guid>
		<description>hey bro i have done the making of image using a javascript and php but i am unable to save it online so that i can retrieve it when needed. would u help me please. here is the link of the files rar.
http://lkrvk.com/chat/imagemaking.rar</description>
		<content:encoded><![CDATA[<p>hey bro i have done the making of image using a javascript and php but i am unable to save it online so that i can retrieve it when needed. would u help me please. here is the link of the files rar.<br />
<a href="http://lkrvk.com/chat/imagemaking.rar" rel="nofollow">http://lkrvk.com/chat/imagemaking.rar</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

