Most of the information systems using user authentication also work with some kind of avatars - images enabling other users to see who commented, posted or made anything else in the system. When we want to be able to show user avatars, we need to enable users to upload their avatar or generate some default. In this article I am going to show you how to:
- generate user avatar by their unique ID using
jdenticon
- select avatar from file
- crop selected avatar using
cropper.js
andreact-cropper
libraries