How to crop an image using jQuery and PHP

0saves

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.

Demo and Source Code Available Here

Read More..

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Related posts:

  1. PHP : Array Functions Tutorial – Part 2
  2. PHP : Array Functions Tutorial – Part 1
  3. Function : Check if array index is set and whether it has a value.
  4. How to get the URL of the Current Page using PHP Server Variables
  5. What is an Array? Functions of Array- Array Tutorials
  6. How to Get the Thumbnail of the First Image from the Post and Display it in WordPress
  7. User and Search Engine friendly dynamic URL with PHP and Apache
  8. Simple Calculator in PHP with basic calculator functions
  9. Open Source Invoicing Software ? BambooInvoice
  10. How to display Random Advertisement or Text or Image on webpage

3 Comments + Add Comment

Leave a comment


four + two =

CommentLuv badge