<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for Web Cash</title>
	<link>http://www.earn-web-cash.com</link>
	<description>Writing, Designing, and Making Money Online</description>
	<pubDate>Mon, 12 May 2008 00:42:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>Comment on Avoid RevenueResponse - Possible Scam CPM Ad Program by Pay Per Impression</title>
		<link>http://www.earn-web-cash.com/2008/02/15/revenueresponse-cpm-scam/#comment-2323</link>
		<dc:creator>Pay Per Impression</dc:creator>
		<pubDate>Sun, 11 May 2008 10:03:35 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/02/15/revenueresponse-cpm-scam/#comment-2323</guid>
		<description>I have also bad experience... got no reply to emails and waiting for payment.</description>
		<content:encoded><![CDATA[<p>I have also bad experience&#8230; got no reply to emails and waiting for payment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordpress Plugin: the Conditional &#8220;Digg This&#8221; Badge by tanicos</title>
		<link>http://www.earn-web-cash.com/scripts-plugins-and-modules/wp-plugin-digg-badge/#comment-2286</link>
		<dc:creator>tanicos</dc:creator>
		<pubDate>Fri, 09 May 2008 19:23:47 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/scripts-plugins-and-modules/wp-plugin-digg-badge/#comment-2286</guid>
		<description>it doesn't work on 2.5..it shows an error message and a help link which tells me to go to their site and check the latest format..</description>
		<content:encoded><![CDATA[<p>it doesn&#8217;t work on 2.5..it shows an error message and a help link which tells me to go to their site and check the latest format..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use PHP To Dynamically Resize an Image by Keryn</title>
		<link>http://www.earn-web-cash.com/2008/01/30/resize-images-php/#comment-2262</link>
		<dc:creator>Keryn</dc:creator>
		<pubDate>Thu, 08 May 2008 09:57:10 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/01/30/resize-images-php/#comment-2262</guid>
		<description>Hi

I was wondering if you could help me. I had got a script working using Imagemagick and then found out the hosts had disabled exec functions due to safety reasons, fair enough but then I had to learn GD, fair enough too but I'm missing something.

Here is my original code:

 # $img  = "pathtoimage/image.jpg";
# $size = GetImageSize($img);
# $dim  = "300x300+0+0";
#  echo $size[0] . " " . $size[1];
#     // Wide Image
#     if($size[0] &#62; $size[1]) {  
#         $thumbnail_height = 300;  
#         $thumbnail_width = (int)(300 * $size[0] / $size[1]);  
#     }  
#    
#     // Tall Image
#     else{
#          $thumbnail_height = (int)(300 * $size[1] / $size[0]);
#          $thumbnail_width = 300;
#     }
#        
# $mogrify = "pathtimagemagick/mogrify -geometry";
# $crop    = "pathtimagemagick/mogrify -gravity Center -crop";
# system("$mogrify $thumbnail_heightx$thumbnail_width $img", $exec_retval);
# system("$crop $dim $img", $exec_retval);

and here is the GD code that I was given:

function resize_image($upload_directory, $new_image_name)
{
  // original image location //
  $original_image = $upload_directory;
  
  // set up a canvas sizes //
  $canvas_width = 65;
  $canvas_height = 65;
  
  // create the canvas //
  $canvas = imagecreatetruecolor($canvas_width, $canvas_height);
  
  // make the background color white //
  $white_background = imagecolorallocate($canvas, 255, 255, 255);
  
  // change the background to white //
  imagefill($canvas, 0, 0, $white_background);
  
  // get the image height and width //
  list($image_width, $image_height) = getimagesize($upload_directory);
  
  #########################################
  // RATIO CALCULATIONS //
  $ratio = $image_width / $image_height;
  
    if ($ratio &#62; 1 )
    {
  
    $new_image_width = 65;
        $new_image_height = 65 / $ratio;
  
     } else {
   
    $new_image_width = (float) 65 * $ratio;
        $new_image_height = 65;
   
  }
  // RATIO CALCULATIONS //
  #########################################
  
  // store original into memory //
  $original_image = imagecreatefromjpeg($original_image);
  
  // copy the original image onto the canvas canvas, original and top/left co-ordinates //
  imagecopyresampled($canvas, $original_image, 0,0,0,0, $new_image_width, $new_image_height, $image_width, $image_height);
  
  // thumbnail name //
  $new_thumbnail_name = "thumb-$new_image_name";
  
  // save the thumbnail in the thumbs folder //
  if(imagejpeg($canvas, "products/thumbnails/$new_thumbnail_name", 100))
  {
   return("$new_thumbnail_name");
  }
  
  // destroy the images in memory //
  imagedestroy($original_image);
  imagedestroy($canvas);  
  
} // end function // 

it resizes but then it displays the image in a 300x300 canvas (not cropped) with a blank bit.

Any suggestions would be extremely appreciated</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I was wondering if you could help me. I had got a script working using Imagemagick and then found out the hosts had disabled exec functions due to safety reasons, fair enough but then I had to learn GD, fair enough too but I&#8217;m missing something.</p>
<p>Here is my original code:</p>
<p> # $img  = &#8220;pathtoimage/image.jpg&#8221;;<br />
# $size = GetImageSize($img);<br />
# $dim  = &#8220;300&#215;300+0+0&#8243;;<br />
#  echo $size[0] . &#8221; &#8221; . $size[1];<br />
#     // Wide Image<br />
#     if($size[0] &gt; $size[1]) {<br />
#         $thumbnail_height = 300;<br />
#         $thumbnail_width = (int)(300 * $size[0] / $size[1]);<br />
#     }<br />
#<br />
#     // Tall Image<br />
#     else{<br />
#          $thumbnail_height = (int)(300 * $size[1] / $size[0]);<br />
#          $thumbnail_width = 300;<br />
#     }<br />
#<br />
# $mogrify = &#8220;pathtimagemagick/mogrify -geometry&#8221;;<br />
# $crop    = &#8220;pathtimagemagick/mogrify -gravity Center -crop&#8221;;<br />
# system(&#8221;$mogrify $thumbnail_heightx$thumbnail_width $img&#8221;, $exec_retval);<br />
# system(&#8221;$crop $dim $img&#8221;, $exec_retval);</p>
<p>and here is the GD code that I was given:</p>
<p>function resize_image($upload_directory, $new_image_name)<br />
{<br />
  // original image location //<br />
  $original_image = $upload_directory;</p>
<p>  // set up a canvas sizes //<br />
  $canvas_width = 65;<br />
  $canvas_height = 65;</p>
<p>  // create the canvas //<br />
  $canvas = imagecreatetruecolor($canvas_width, $canvas_height);</p>
<p>  // make the background color white //<br />
  $white_background = imagecolorallocate($canvas, 255, 255, 255);</p>
<p>  // change the background to white //<br />
  imagefill($canvas, 0, 0, $white_background);</p>
<p>  // get the image height and width //<br />
  list($image_width, $image_height) = getimagesize($upload_directory);</p>
<p>  #########################################<br />
  // RATIO CALCULATIONS //<br />
  $ratio = $image_width / $image_height;</p>
<p>    if ($ratio &gt; 1 )<br />
    {</p>
<p>    $new_image_width = 65;<br />
        $new_image_height = 65 / $ratio;</p>
<p>     } else {</p>
<p>    $new_image_width = (float) 65 * $ratio;<br />
        $new_image_height = 65;</p>
<p>  }<br />
  // RATIO CALCULATIONS //<br />
  #########################################</p>
<p>  // store original into memory //<br />
  $original_image = imagecreatefromjpeg($original_image);</p>
<p>  // copy the original image onto the canvas canvas, original and top/left co-ordinates //<br />
  imagecopyresampled($canvas, $original_image, 0,0,0,0, $new_image_width, $new_image_height, $image_width, $image_height);</p>
<p>  // thumbnail name //<br />
  $new_thumbnail_name = &#8220;thumb-$new_image_name&#8221;;</p>
<p>  // save the thumbnail in the thumbs folder //<br />
  if(imagejpeg($canvas, &#8220;products/thumbnails/$new_thumbnail_name&#8221;, 100))<br />
  {<br />
   return(&#8221;$new_thumbnail_name&#8221;);<br />
  }</p>
<p>  // destroy the images in memory //<br />
  imagedestroy($original_image);<br />
  imagedestroy($canvas);  </p>
<p>} // end function // </p>
<p>it resizes but then it displays the image in a 300&#215;300 canvas (not cropped) with a blank bit.</p>
<p>Any suggestions would be extremely appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Write a PHP Script to Send a Trackback by web scripts</title>
		<link>http://www.earn-web-cash.com/2008/01/08/how-to-write-a-php-script-to-send-a-trackback/#comment-2144</link>
		<dc:creator>web scripts</dc:creator>
		<pubDate>Sun, 04 May 2008 07:02:02 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/01/08/how-to-write-a-php-script-to-send-a-trackback/#comment-2144</guid>
		<description>Nice information</description>
		<content:encoded><![CDATA[<p>Nice information</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use PHP To Dynamically Resize an Image by Amrita</title>
		<link>http://www.earn-web-cash.com/2008/01/30/resize-images-php/#comment-2039</link>
		<dc:creator>Amrita</dc:creator>
		<pubDate>Wed, 30 Apr 2008 15:11:57 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/01/30/resize-images-php/#comment-2039</guid>
		<description>Hi,
I think the script is great. Iam atually trying to resize an image based on the inter pupil distance of both the eyes. I have written the following script which resizes but does not give me the same final inter pupil distance that I am aiming for. Iam trying to resize the images so that the target image has an inter pupil distance of 128. 
Any suggestions from your side would be of great help to me. 
Thank you very much
Amrita

I am pasting the script below: 
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I think the script is great. Iam atually trying to resize an image based on the inter pupil distance of both the eyes. I have written the following script which resizes but does not give me the same final inter pupil distance that I am aiming for. Iam trying to resize the images so that the target image has an inter pupil distance of 128.<br />
Any suggestions from your side would be of great help to me.<br />
Thank you very much<br />
Amrita</p>
<p>I am pasting the script below:</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Integrate an RSS Feed Into Your Site with Simple XML by Share Your Reading Habits: Google Reader &#124; Web Cash</title>
		<link>http://www.earn-web-cash.com/2008/02/09/simple-xml-rss-feed/#comment-2019</link>
		<dc:creator>Share Your Reading Habits: Google Reader &#124; Web Cash</dc:creator>
		<pubDate>Tue, 29 Apr 2008 01:53:25 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/02/09/simple-xml-rss-feed/#comment-2019</guid>
		<description>[...] feed is available in a standard rss xml file. You could use SimpleXML to parse the feed and display the information yourself. Or, you could use the ready-made widget that Google [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] feed is available in a standard rss xml file. You could use SimpleXML to parse the feed and display the information yourself. Or, you could use the ready-made widget that Google [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Helium - Writing for Profit and a Community by Helium: Getting Started and Writing on an Existing Topic &#124; Web Cash</title>
		<link>http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/#comment-1989</link>
		<dc:creator>Helium: Getting Started and Writing on an Existing Topic &#124; Web Cash</dc:creator>
		<pubDate>Mon, 28 Apr 2008 01:34:01 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/#comment-1989</guid>
		<description>[...] I mentioned before, Helium is another great place to publish your writing online. It ranks up with Associated Content [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] I mentioned before, Helium is another great place to publish your writing online. It ranks up with Associated Content [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Avoid RevenueResponse - Possible Scam CPM Ad Program by Webmaster Money</title>
		<link>http://www.earn-web-cash.com/2008/02/15/revenueresponse-cpm-scam/#comment-1946</link>
		<dc:creator>Webmaster Money</dc:creator>
		<pubDate>Sun, 27 Apr 2008 20:20:39 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/02/15/revenueresponse-cpm-scam/#comment-1946</guid>
		<description>It looks like they own me money also and do not reply to my emails.
Be aware!</description>
		<content:encoded><![CDATA[<p>It looks like they own me money also and do not reply to my emails.<br />
Be aware!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What Is a Trackback and What Does It Do? by raicha</title>
		<link>http://www.earn-web-cash.com/web-design-guides/trackbacks/what-is-a-trackback-and-what-does-it-do/#comment-1918</link>
		<dc:creator>raicha</dc:creator>
		<pubDate>Sun, 27 Apr 2008 07:53:25 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/web-design-guides/trackbacks/what-is-a-trackback-and-what-does-it-do/#comment-1918</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use Xomba.com to Generate Backlinks for SEO by Nick</title>
		<link>http://www.earn-web-cash.com/2008/02/11/xomba-backlinks-seo/#comment-1912</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 27 Apr 2008 03:15:59 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/02/11/xomba-backlinks-seo/#comment-1912</guid>
		<description>"What is Xomba.com? It’s just another site you can write for on the ‘net - and get a share of the revenue through your AdSense account."

Ouch...</description>
		<content:encoded><![CDATA[<p>&#8220;What is Xomba.com? It’s just another site you can write for on the ‘net - and get a share of the revenue through your AdSense account.&#8221;</p>
<p>Ouch&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
