This tutorial about to crop an image using cropper js and also rotate the image as you need. so it will help that upload your crop image to your PHP code. also, this will give other options for an image. so you can easily be used in your PHP code. simply follow the step and get the image cropper in your PHP code.
Step 1)
Download the zip file in your system. Click Here For Download
Step 2)
Now extract this folder and put in your PHP server like xampp or wamp or put directly to the live server where your apache is running.
Step 3)
Finally, Run the index.php file in your system which is in the demo folder it will display the image uploader. select image for crop and rotate and then you can click on done and it will crop the image and display in the image box.