I need a php script created that allows a user to upload a pic, crop it, and use it as a profile picture. Please use a jQuery cropper plugin that's ok to use for commercial use.
HOW IT SHOULD WORK
A user logs in, uploads a pic, and is then prompted to crop it. Once cropped, it is saved to a folder and the file is renamed and stored into the db.
I do not need to store multiple profile pics. User will only be allowed to upload one. If user deletes the profile pic, the image should be deleted from site folder and the db, and a default, "no photo" image should be displayed. The script should work on desktop browsers as well as mobile.
And only allow certain image extensions like this:
$allowed_ext = array('jpg', 'JPG', 'JPEG', 'gif', 'png', 'PNG');
Any questions please ask.