Skip to content

Latest commit

 

History

History
 
 

crop-avatar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Crop Avatar

A complete example of Cropper.

Server Dependencies

  • PHP 5.5+

Browser Support

  • Chrome (latest 2)
  • Firefox (latest 2)
  • Internet Explorer 8+
  • Opera (latest 2)
  • Safari (latest 2)

FAQ

How to debug the example page with browsers?

Take Chrome for example:

  1. Open the example page on Chrome.
  2. Open the Developer Tools of the browser.
  3. Choose the Network panel from the opened window.
  4. Click the Clear button to clear the existent logs.
  5. Click avatar to open the cropping modal.
  6. Click the file input to choose an image from your local computer.
  7. Crop the image with the Cropper.
  8. Click the Save button to upload and crop the image.
  9. Check the Network panel if you got a parse error.
  10. Click the crop.php request item from the Name column of the panel.
  11. Click the Preview panel from the opened window.
  12. Find the error from the response.

How to do when I got an Unknown upload error?

You might upload a huge image, just configure the upload_max_filesize and post_max_size of your php.ini file.