<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 07:36:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Crop and Resize Images with ImageMagick]]></title>
      <guid>http://www.phpdeveloper.org/news/19537</guid>
      <link>http://www.phpdeveloper.org/news/19537</link>
      <description><![CDATA[<p>
PHPMaster.com has a new tutorial posted showing you how to <a href="http://phpmaster.com/crop-and-resize-images-with-imagemagick/">crop and resize images</a> with the help of the ImageMagick functionality that can be added to PHP (via <a href="http://pecl.php.net/package/imagick">this extension</a>).
</p>
<blockquote>
If your website allows users to upload photos, image cropping/resizing functionality certainly comes in handy. But users might not have access to image manipulation tools like Photoshop, so by providing a cropping/resizing feature you can allow users to upload photos from any device (e.g. tablets or phones) without them having to worry about the the final size. Furthermore, you can create different versions of the same image and also allow users to crop specific portions of uploaded picture. In this article I'll show you how to create an image cropping tool with the help of the ImageMagick PHP extension. 
</blockquote>
<p>
The post shows the use of the "cropimage" function to trim down an image from its original size and "thumbnailImage" to shrink down the image to make a thumbnail. Also included is the code (both the PHP and the HTML form) to handle file uploads and automatically create a thumbnail image. It outputs the image to the browser and asks the user to select the portion they want thumbnailed (with <a href="http://odyniec.net/projects/imgareaselect/">this jQuery plugin</a> helping). 
</p>
Link: http://phpmaster.com/crop-and-resize-images-with-imagemagick]]></description>
      <pubDate>Thu, 02 May 2013 12:14:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Smashing Magazine: Image Manipulation With jQuery and PHP GD]]></title>
      <guid>http://www.phpdeveloper.org/news/16150</guid>
      <link>http://www.phpdeveloper.org/news/16150</link>
      <description><![CDATA[<p>
Smashing Magazine has a new post today about <a href="http://www.smashingmagazine.com/2011/04/05/image-manipulation-with-jquery-and-php-gd/">using jQuery and GD to manipulate images</a> to upload an image, crop it and save that version to the remote server.
</p>
<blockquote>
One of the numerous advantages brought about by the explosion of jQuery and other JavaScript libraries is the ease with which you can create interactive tools for your site. When combined with server-side technologies such as PHP, this puts a serious amount of power at your finger tips. [...] Sure, there are plugins out there that you can use to do this; but this article aims to show you what's behind the process. You can <a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/04/smashing_image_manipulation.zip">download the source files</a> for reference.
</blockquote>
<p>
They walk you through the little bit of setup you'll need before things will be working and then move right into the upload form and PHP handling that goes with it. The Javascript that goes with it is all home-grown (not a plugin) and cleverly uses a DIV to simulate the bounding box for the crop.
</p>]]></description>
      <pubDate>Tue, 05 Apr 2011 12:02:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[CodeForest.net:  How to crop an image using jQuery and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15283</guid>
      <link>http://www.phpdeveloper.org/news/15283</link>
      <description><![CDATA[<p>
On CodeForest.net there's <a href="http://www.codeforest.net/how-to-crop-an-image-using-jquery-and-php">a new tutorial</a> that merges the power of PHP and the popular <a href="http://www.jquery.com">jQuery</a> javascript library to create an image cropping tool you can use on your site.
</p>
<blockquote>
So, your client uploaded the image into your newly, freshly developed CMS and then called you to yell about distorted image, or image that just does not look good? That is a well known scenario. Let me explain a bit what we will achieve today. When your client uploads an image, he is taken to an Image edit area where he sees uploaded image and a smaller preview window. He just needs to drag on the larger image to select crop area and press submit. After that you crop the image using PHP GD functionality and save the new image somewhere on disk.
</blockquote>
<p>
Their focus is mainly on the image editing part using the <a href="http://odyniec.net/projects/imgareaselect/">ImageAreaSelect</a> jQuery plugin to help with the actual crop size selection. After the selection is finished, though, those values get sent back to a PHP script (via a form) and the resulting image is cropped and saved with help from the GD functionality of PHP.
</p>]]></description>
      <pubDate>Thu, 14 Oct 2010 13:49:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Asvin Balloo's Blog: AJAX image cropper with YUI and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11170</guid>
      <link>http://www.phpdeveloper.org/news/11170</link>
      <description><![CDATA[<p>
<i>Asvin Balloo</i> has <a href="http://htmlblog.net/ajax-image-cropper-with-yui-and-php/">posted a tutorial</a> that shows how to combine the <a href="http://developer.yahoo.com/yui/">YUI libraries</a> with PHP to create a simple image cropper.
</p>
<blockquote>
This post will show you how to build an AJAX crop image tool using the image cropper control from YUI library and PHP. The <a href="http://developer.yahoo.com/yui/imagecropper/">ImageCropper Control</a> from the <a href="http://developer.yahoo.com/yui/">YUI library</a> gives you an interactive interface for getting the dimensions to crop an image and using these dimensions in PHP, we can do some cropping.
</blockquote>
<p>
The script takes in an upload, shows it in the browser for cropping and once altered, pushes the altered image back out as a download. Full code is included as well as a <a href="http://htmlblog.net/demo/cropper/">demo</a> of the final result and a <a href="http://htmlblog.net/demo/cropper/cropper.zip">sample file</a> to get you started.
</p>]]></description>
      <pubDate>Wed, 08 Oct 2008 12:09:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: Image Resize Helper]]></title>
      <guid>http://www.phpdeveloper.org/news/7320</guid>
      <link>http://www.phpdeveloper.org/news/7320</link>
      <description><![CDATA[<p>
The Bakery has <a href="http://bakery.cakephp.org/articles/view/240">a new helper</a> posted today for those working with images in their applications that need to resize and cache them easily.
</p>
<blockquote>
This helper resizes an image on the fly and places it in an image cache directory for later use. Make sure your imagecache directory is writable. Future editions could include a cropping function.
</blockquote>
<p>
The full code of <a href="http://bakery.cakephp.org/articles/view/240">the class</a> is provided in both a cut and paste-able format and <a href="http://bakery.cakephp.org/articles/download_code/240/block/1">for download</a>. There's an example of the sample usage included as well.
</p>]]></description>
      <pubDate>Wed, 21 Feb 2007 09:48:00 -0600</pubDate>
    </item>
  </channel>
</rss>
