Ajax loading and cropping of an image for an avatar while preserving the original and coordinates of the selected area.
Installation, Upload the main file to the server engine/ajax/ava.php
Connect the rest of the scripts and styles as convenient.
In the userinfo.tpl template, add the necessary links or buttons and hang the corresponding functions on them
For example, open the thumbnail edit window P.edit()