<?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: Ajax Image Manipulation</title>
	<atom:link href="http://www.rockstarapps.com/wordpress/?feed=rss2&#038;p=29" rel="self" type="application/rss+xml" />
	<link>http://www.rockstarapps.com/wordpress/?p=29</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 26 Mar 2009 22:45:18 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: London</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-111</link>
		<dc:creator>London</dc:creator>
		<pubDate>Mon, 26 Mar 2007 05:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-111</guid>
		<description>Hi, Nice widget .. we wrote such a functionlity in java on server side and exposed it thru a REST url</description>
		<content:encoded><![CDATA[<p>Hi, Nice widget .. we wrote such a functionlity in java on server side and exposed it thru a REST url</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bbuffone</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-105</link>
		<dc:creator>bbuffone</dc:creator>
		<pubDate>Wed, 14 Mar 2007 00:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-105</guid>
		<description>Not sure what happened to the image but it&#039;s back.

Bob (Buffone)</description>
		<content:encoded><![CDATA[<p>Not sure what happened to the image but it&#8217;s back.</p>
<p>Bob (Buffone)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FPics</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-104</link>
		<dc:creator>FPics</dc:creator>
		<pubDate>Tue, 13 Mar 2007 23:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-104</guid>
		<description>Unfortunately something was missed.
I don&#039;t see an image under
&quot;After Transform&quot;.
Other than that - you have provided very detailed instructions... Thank you.</description>
		<content:encoded><![CDATA[<p>Unfortunately something was missed.<br />
I don&#8217;t see an image under<br />
&#8220;After Transform&#8221;.<br />
Other than that &#8211; you have provided very detailed instructions&#8230; Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davidvogt</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-86</link>
		<dc:creator>davidvogt</dc:creator>
		<pubDate>Sun, 04 Feb 2007 00:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-86</guid>
		<description>Your article is very informative and helped me further.

Thanks, David</description>
		<content:encoded><![CDATA[<p>Your article is very informative and helped me further.</p>
<p>Thanks, David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Court Kizer</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-80</link>
		<dc:creator>Court Kizer</dc:creator>
		<pubDate>Wed, 13 Dec 2006 00:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-80</guid>
		<description>Just use PHPThumb, it&#039;s excellent, you can use it inline with any image. So for example you can use the IMG tag inline, and add variables such as cropping, watermarks, all sorts of fun features. I use it with my ajax image manipulation. It even can be set to cache thumbnails and images.

Check it out:
http://phpthumb.sourceforge.net/</description>
		<content:encoded><![CDATA[<p>Just use PHPThumb, it&#8217;s excellent, you can use it inline with any image. So for example you can use the IMG tag inline, and add variables such as cropping, watermarks, all sorts of fun features. I use it with my ajax image manipulation. It even can be set to cache thumbnails and images.</p>
<p>Check it out:<br />
<a href="http://phpthumb.sourceforge.net/" rel="nofollow">http://phpthumb.sourceforge.net/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bbuffone</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-84</link>
		<dc:creator>bbuffone</dc:creator>
		<pubDate>Fri, 01 Dec 2006 12:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-84</guid>
		<description>I will be posting on how the back end peice works but here is the code needed

&lt;?php

//This function create an image from the information supplied to it.

$imageURL = $_GET[&#039;imageurl&#039;];

$imageZoom = $_GET[&#039;scale&#039;];

// These are the actual pixel values time -1
// or $imageX = $realX * -1.0;
// I should to the multiplication here
// instead of on the client.

$imageX = $_GET[&#039;x&#039;];
$imageY = $_GET[&#039;y&#039;];

$imageWidth = $_GET[&#039;width&#039;];
$imageHeight = $_GET[&#039;height&#039;];

$sourceImageType = $_GET[&#039;sourcetype&#039;];
$targetImageType = $_GET[&#039;imagetype&#039;];

/* Generate a unique token: */
$imageNumber = md5(uniqid(rand(),1));

function thumbnail_jpeg ($original, $thumbnail, $imageX, $imageY, $width, $height, $zoom, $quality) {
  	list($width_orig, $height_orig) = getimagesize($original);

	//get the orginal image.
  	$image = imagecreatefromjpeg($original);

  	//create the zoomed image
  	$zoom_width = $width_orig * ((float)$zoom);
  	$zoom_height = $height_orig * ((float)$zoom);

  	$image_zoomed = imagecreatetruecolor($zoom_width, $zoom_height);
  	imagecopyresampled($image_zoomed, $image, 0, 0, 0, 0,
  						$zoom_width, $zoom_height, $width_orig, $height_orig);

	//create the final image
  	$image_p = imagecreatetruecolor($width, $height);
  	imagecopyresampled($image_p, $image_zoomed, 0, 0, $imageX, $imageY, $width, $height,
  						$width, $height);

  	imagejpeg($image_p, $thumbnail, $quality);
  	return;
}

$imageFileName = &quot;imagestore/&quot;.$imageNumber.&quot;.&quot;.$sourceImageType;
thumbnail_jpeg($imageURL, &quot;../&quot;.$imageFileName, $imageX, $imageY, $imageWidth, $imageHeight, $imageZoom, 100);
?&gt;
{
 imageLocation : &quot;http://www.rockstarapps.com/samples/sendmeapic/&lt;?php echo $imageFileName ?&gt;&quot;
}</description>
		<content:encoded><![CDATA[<p>I will be posting on how the back end peice works but here is the code needed</p>
<p>< ?php</p>
<p>//This function create an image from the information supplied to it.</p>
<p>$imageURL = $_GET['imageurl'];</p>
<p>$imageZoom = $_GET['scale'];</p>
<p>// These are the actual pixel values time -1<br />
// or $imageX = $realX * -1.0;<br />
// I should to the multiplication here<br />
// instead of on the client.</p>
<p>$imageX = $_GET['x'];<br />
$imageY = $_GET['y'];</p>
<p>$imageWidth = $_GET['width'];<br />
$imageHeight = $_GET['height'];</p>
<p>$sourceImageType = $_GET['sourcetype'];<br />
$targetImageType = $_GET['imagetype'];</p>
<p>/* Generate a unique token: */<br />
$imageNumber = md5(uniqid(rand(),1));</p>
<p>function thumbnail_jpeg ($original, $thumbnail, $imageX, $imageY, $width, $height, $zoom, $quality) {<br />
  	list($width_orig, $height_orig) = getimagesize($original);</p>
<p>	//get the orginal image.<br />
  	$image = imagecreatefromjpeg($original);</p>
<p>  	//create the zoomed image<br />
  	$zoom_width = $width_orig * ((float)$zoom);<br />
  	$zoom_height = $height_orig * ((float)$zoom);</p>
<p>  	$image_zoomed = imagecreatetruecolor($zoom_width, $zoom_height);<br />
  	imagecopyresampled($image_zoomed, $image, 0, 0, 0, 0,<br />
  						$zoom_width, $zoom_height, $width_orig, $height_orig);</p>
<p>	//create the final image<br />
  	$image_p = imagecreatetruecolor($width, $height);<br />
  	imagecopyresampled($image_p, $image_zoomed, 0, 0, $imageX, $imageY, $width, $height,<br />
  						$width, $height);</p>
<p>  	imagejpeg($image_p, $thumbnail, $quality);<br />
  	return;<br />
}</p>
<p>$imageFileName = "imagestore/".$imageNumber.".".$sourceImageType;<br />
thumbnail_jpeg($imageURL, "../".$imageFileName, $imageX, $imageY, $imageWidth, $imageHeight, $imageZoom, 100);<br />
?><br />
{<br />
 imageLocation : &#8220;http://www.rockstarapps.com/samples/sendmeapic/< ?php echo $imageFileName ?>&#8221;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-83</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 01 Dec 2006 09:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-83</guid>
		<description>Great article! How do you pass the cropping/scaling info to the backend so that ImageMagick can do the high quality scaling and cropping?</description>
		<content:encoded><![CDATA[<p>Great article! How do you pass the cropping/scaling info to the backend so that ImageMagick can do the high quality scaling and cropping?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anjan bacchu</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-82</link>
		<dc:creator>anjan bacchu</dc:creator>
		<pubDate>Fri, 01 Dec 2006 08:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-82</guid>
		<description>hi there,

  coming from ajaxian. nice tip.

BR,
~A</description>
		<content:encoded><![CDATA[<p>hi there,</p>
<p>  coming from ajaxian. nice tip.</p>
<p>BR,<br />
~A</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajaxian &#187; Send Me a Pic</title>
		<link>http://www.rockstarapps.com/wordpress/?p=29&#038;cpage=1#comment-81</link>
		<dc:creator>Ajaxian &#187; Send Me a Pic</dc:creator>
		<pubDate>Fri, 01 Dec 2006 06:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockstarapps.com/wordpress/?p=29#comment-81</guid>
		<description>[...] Bob has written up a post on Ajax Image Manipulation which is used in Send Me a Pic. [...]</description>
		<content:encoded><![CDATA[<p>[...] Bob has written up a post on Ajax Image Manipulation which is used in Send Me a Pic. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
