PHPjQueryhtml5 avatar image selection and upload, compatible with mobile phone uploads, a PHP image interception and upload function implemented using HTML5jquery, which can be widely used in avatar image cropping and uploading, HTML5 environment, can be easily transplanted to mobile APP for use.
How to use: Drag the mouse to intercept the selection, and the selected area will be highlighted. After interception, the file size, file type, image size, image width, and image height will be automatically obtained, and then click the "Upload Image" button. You can see it after uploading. Comparison of pictures before and after uploading.
Things to note:
1. This source code runs in the HTML5 environment, so please test it in Chrome, Firefox, 360 Speed, Opera and other browsers. It may cause exceptions under IE.
2. Please take a screenshot before uploading the picture.
3. To limit the type and size of uploaded images, please modify the upload.php file.