How to crop an image using jQuery and PHP
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
Related posts:
- PHP : Array Functions Tutorial – Part 2
- PHP : Array Functions Tutorial – Part 1
- Function : Check if array index is set and whether it has a value.
- How to get the URL of the Current Page using PHP Server Variables
- What is an Array? Functions of Array- Array Tutorials
- How to Get the Thumbnail of the First Image from the Post and Display it in WordPress
- User and Search Engine friendly dynamic URL with PHP and Apache
- Simple Calculator in PHP with basic calculator functions
- Open Source Invoicing Software ? BambooInvoice
- How to display Random Advertisement or Text or Image on webpage
Related Posts
3 Comments + Add Comment
Leave a comment
Recommended
Related Posts
- PHP : Array Functions Tutorial – Part 2
- PHP : Array Functions Tutorial – Part 1
- Function : Check if array index is set and whether it has a value.
- How to get the URL of the Current Page using PHP Server Variables
- What is an Array? Functions of Array- Array Tutorials
- How to Get the Thumbnail of the First Image from the Post and Display it in WordPress
- User and Search Engine friendly dynamic URL with PHP and Apache
- Simple Calculator in PHP with basic calculator functions
- Open Source Invoicing Software ? BambooInvoice
- How to display Random Advertisement or Text or Image on webpage

An article by





[...] This post was mentioned on Twitter by Paul Milford, Abhishek Sanghvi, Abhishek Sanghvi, Abhishek Sanghvi, Michael Davis and others. Michael Davis said: RT @myphpscript: How to crop an image using jQuery and PHP http://bit.ly/brD0pS #Code #Jquery #php_scripts [...]
[...] post: How to crop an image using jQuery and PHP | My PHP Scripts | A Hub … Related Posts:PubSubHubbub Hub (Scripts) 6.x-1.0-beta1 – Free PubSubHubbub Hub …PHP [...]
[...] the original post: How to crop an image using jQuery and PHP | My PHP Scripts | A Hub … Related Posts:PubSubHubbub Hub (Scripts) 6.x-1.0-beta1 – Free PubSubHubbub Hub …PHP [...]