![](https://www.devopsschool.com/blog/wp-content/uploads/2020/07/cropping-image-php.png)
In this PHP tutorial, I am going to tell you how to crop an image using jQuery and upload the image via Ajax. Using the Croppie plugin to crop the image.
First, we create a HTML file “index.html” and include the required library.
Now, we can create a PHP file “croppie.php” to move the cropped images into a folder and also create a “uploads” folder, put this code.
And RUN your index file in localhost.
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/07/Cropping3-1024x416.png)
After image upload and cropping.
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/07/Cropping2-1024x413.png)
Reference link:
![loading](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/gallery-page-loader.gif)
![play](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/playhover.png)
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-1
![play](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/playhover.png)
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-2
![loading](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/gallery-page-loader.gif)
Latest posts by Narayan K (see all)
- Top 5 Reliable Phone Number Validation API for Your Next Product - February 10, 2022
- Top 5 IT Management Tools | IT Management Software - July 30, 2021
- Complete guide of PHP certification courses, tutorials & training - July 23, 2021