News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

CodeForest.net:
How to crop an image using jQuery and PHP
October 14, 2010 @ 13:49:52

On CodeForest.net there's a new tutorial that merges the power of PHP and the popular jQuery javascript library to create an image cropping tool you can use on your site.

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.

Their focus is mainly on the image editing part using the ImageAreaSelect 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.

0 comments voice your opinion now!
crop image jquery tutorial imageareaselect


blog comments powered by Disqus

Similar Posts

Brian Swan's Blog: Performance Tuning PHP Apps on Windows/IIS with Output Caching

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 12)

Christian Wenz's Blog: php|works/db|works 2006

Kevin van Zonneveld: It's Almost 2014 and We Are Still Committing Broken Code

Jeremy Cook's Blog: Installing Imagick under Apache on Windows


Community Events











Don't see your event here?
Let us know!


podcast package hack overview symfony2 component threedevsandamaybe opinion framework security facebook hhvm install composer language release unittest introduction code application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework