<?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>Fri, 24 May 2013 21:46:52 -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[NETTUTS.com: Image Resizing Made Easy with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14214</guid>
      <link>http://www.phpdeveloper.org/news/14214</link>
      <description><![CDATA[<p>
New from NETTUTS.com there's a recent tutorial showing you how to use the GD graphics library (bundled with PHP) to <a href="http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php">resize images</a> on the fly.
</p>
<blockquote>
Ever wanted an all purpose, easy to use method of resizing your images in PHP? Well that's what PHP classes are for '" reusable pieces of functionality that we call to do the dirty work behind the scenes. We're going to learn how to create our own class that will be well constructed, as well as expandable. Resizing should be easy.
</blockquote>
<p>
The simple eleven-step process (don't worry, it sounds worse than it is) has you go from a basic image and, with the help of a custom PHP class, create a resized image based on a type such as "landscape", "auto" or "exact". Full code is included for you to cut and paste or you can <a href="http://nettuts.s3.cdn.plus.org/607_resize/resize-example.zip">download the source</a> and have the full code ready and waiting.
</p>]]></description>
      <pubDate>Fri, 19 Mar 2010 08:47:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kae Verens' Blog: pre-parsing HTML for incorrectly-sized images]]></title>
      <guid>http://www.phpdeveloper.org/news/10707</guid>
      <link>http://www.phpdeveloper.org/news/10707</link>
      <description><![CDATA[<p>
<i>Kae Verens</i> has <a href="http://verens.com/archives/2008/07/27/pre-parsing-html-for-incorrectly-sized-images/">a recent blog post</a> that looks at a method for helping to protect users from themselves when working with images - a method for handling ones incorrectly sized.
</p>
<blockquote>
Every now and then, I get a call from a client who is puzzled why their site is running slow. I would look at their page and see an innocuous image inserted into a paragraph. When I examine the image, though, I see that the client has artificially resized the image using HTML. One recent example showed on-screen as a 300px-wide image. When I examined it, it was actually 3000px wide (approx).
</blockquote>
<p>
The <a href="http://verens.com/demos/html_imageresizer/html_imageresizer.phps">script</a> looks through some HTML markup and, based on the sizes in the image tags, resizes the images appropriately. An <A href="http://verens.com/demos/html_imageresizer/html_imageresizer.php">example</a> and <a href="http://verens.com/demos/html_imageresizer/html_imageresizer.phps">the source</a> are provided.
</p>]]></description>
      <pubDate>Tue, 29 Jul 2008 12:03:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Seam carving]]></title>
      <guid>http://www.phpdeveloper.org/news/9627</guid>
      <link>http://www.phpdeveloper.org/news/9627</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has posted <a href="http://valokuva.org/?p=99">another quick hit</a> ImageMagick hint to his blog - this time it deal with "seam carving", a process for cropping and resampling of an image to make a different composite picture.
</p>
<blockquote>
Today I was reading trough the ImageMagick ChangeLog and noticed an interesting entry. "Add support for liquid rescaling". I rushed to check the MagickWand API docs and there it was: MagickLiquidRescaleImage! After about ten minutes of hacking the Imagick support was done. Needless to say; I was excited
</blockquote>
<p>
You'll need to have the <a href="http://liblqr.wikidot.com/">libqr library</a> compiled into the ImageMagick installation, but the actual use of the functionality is simple - about three or four lines do the work for you. He includes <a href="http://valokuva.org/wp-content/uploads/2008/02/landscape_orig.jpg">the original image</a> and <a href="http://valokuva.org/wp-content/uploads/2008/02/landscape.jpg">the result</a> from his test (as well as <a href="http://valokuva.org/wp-content/uploads/2008/02/300x300_result.jpg">another example</a> of the same result image scaled down automatically.
</p>]]></description>
      <pubDate>Wed, 13 Feb 2008 17:10:00 -0600</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>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: Laziest image resize in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6896</guid>
      <link>http://www.phpdeveloper.org/news/6896</link>
      <description><![CDATA[<p>
On phpied.com, there's <a href="http://www.phpied.com/laziest-image-resize-in-php/">this new post</a> that shares <i>Stoyan</i>'s lazy way to resize images in PHP - with the help of the <a href="http://pear.php.net/package/Image_Transform/">PEAR::Image_Transform</a> package.
</p>
<blockquote>
Today I saw a post at digg.com on image resizing with PHP and there was quite a discussion. Let me share the laziest way (that I know of) how to do it - PEAR::Image_Transform is all it takes.
</blockquote>
<p>
His code is only <a href="http://www.phpied.com/laziest-image-resize-in-php/">five lines log</a> and takes in a JPG image and resizes it down to a 100x100 pixel image to output as a PNG. He also mentions some of the other functionality the package has, including lots of other image manipulation extensions.
</p>]]></description>
      <pubDate>Thu, 14 Dec 2006 09:19:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SpinDrop.us: Cropping Images using DHTML (Prototype) and symfony]]></title>
      <guid>http://www.phpdeveloper.org/news/6286</guid>
      <link>http://www.phpdeveloper.org/news/6286</link>
      <description><![CDATA[<p>
From the SpinDrop.us blog, there's <a href="http://spindrop.us/2006/09/16/cropping-images-using-dhtml-prototype-and-symfony/">a new tutorial</a> on combining the power of dynamic HTML and PHP to create an image cropping script for your website.
</p>
<blockquote>
<p>
Years ago when I was working on a photo gallery for <a href="http://davedash.com/">davedash.com</a> I got the art of making tumbnails down fairly well. It was automated and didn't allow for specifying how the thumbnail should be made. With dozens of photos (which was a lot back then), when would I find that kind of time.
</p>
<p>
Flashback to today, for <a href="http://workface.com/">my company</a>... we want users with avatars... but nothing too large. Maybe a nice 80x80 picture. Well the coolest UI I've seen was Apple's Address Book which let you use this slider mechanism to crop a fixed sized image from a larger image.
</p>
</blockquote>
<p>
They create a pretty <a href="http://spindrop.us/2006/09/16/cropping-images-using-dhtml-prototype-and-symfony/">slick little app</a>, using symfony to handle the framework for the app, some Javascript in the form of Prototype to make the controls, and plenty of CSS/HTML to make it usable. You can <a href="http://demos.spindrop.us/image_cropper/">check out the demo here</a>.
</p>]]></description>
      <pubDate>Sat, 16 Sep 2006 16:29:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Cool Image Thumbnail Class]]></title>
      <guid>http://www.phpdeveloper.org/news/6176</guid>
      <link>http://www.phpdeveloper.org/news/6176</link>
      <description><![CDATA[<p>
On the Zend Developer Zone, they <a href="http://devzone.zend.com/node/view/id/869">point out</a> a handy little image manipulation class they've come across - GenXDesign's <a href="http://www.gen-x-design.com/projects/php-thumbnailer-class/">PHP Thumbnail Class</a> - as well as some details about it.
</p>
<blockquote>
<p>
I've seen a lot of implementations of thumb nail functionality in PHP, I've even written a couple of my own. I like this class thought. In looking over the code the first thing you notice is that it's clean code. I don't mean they use the latest whiz-bang method to cshave a few keystrokes. 
</p>
<p>
This code is simple, nicely formatted and easy to read through. My only real problem with the code itself is that it is not terribly well documented. That can be forgiven since easy to read.
</p>
</blockquote>
<p>
<i>Cal</i> talks about some of the <a href="http://devzone.zend.com/node/view/id/869">other features</a> of the class, including that it works with gif/jpeg/png images, makes it easy to set the quality of the jpgs, and makes it easy to display the dynamic images directly to the browser. Check out <a href="http://www.gen-x-design.com/demo_thumbnail.php">the demo</a> for more.
</p>]]></description>
      <pubDate>Wed, 30 Aug 2006 07:41:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPit.net: Image manipulation with PHP & the GD library (Part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/6031</guid>
      <link>http://www.phpdeveloper.org/news/6031</link>
      <description><![CDATA[<p>
New on PHPit.net today is <a href="http://www.phpit.net/article/image-manipulation-php-gd-part2/">part two of their series</a> covering working with images in PHP through the GD graphics library.
</p>
<blockquote>
In this second part of the "Image manipulation with PHP & the GD library" article series you will learn how to resize images, create thumbnails, watermark images and more.
</blockquote>
<p>
They <a href="http://www.phpit.net/article/image-manipulation-php-gd-part2/">start with</a> resizing images, showing how to grab the current size and alter it to modify the output (both in a set and proportional way). With that code in place, they take the next logical step - an automatic thumbnail creator from a file upload. Finally, they show how to help protect your images using a watermark - their example is a "Image by YourWebsite.com" string of text placed on the image.
</p>]]></description>
      <pubDate>Mon, 14 Aug 2006 13:39:51 -0500</pubDate>
    </item>
  </channel>
</rss>
