M
M
Michael2021-06-22 08:23:51
PHP
Michael, 2021-06-22 08:23:51

What is the easiest option for users to manage an avatar?

Greetings.
We set the task to upload an avatar in the profile.
Taking into account that they say users are so far from everything computer that they need an avatar editor.
But there are other conflicting requirements, so that, for example, the avatar should be at least 200 * 200, so that the quality is supposedly better.
I looked through a lot of things, but always some inappropriate solutions.
Since they want a more sophisticated editor, then we take this editor purely on js (js has such an opportunity). But in them it turns out that they cut as it is given on the screen, or by squares given, and do not contact with the fact when you upload small pictures.
And if you give them an area of ​​​​200 * 200, then they look too big, not like ordinary avatars.
But in these editors, plus that you can cut out any piece, suddenly the user decides to upload a group photo of his school class
.
If you start something automatically cut, squeeze, I'm afraid they will immediately reject it. Although if there are ideas ..
Well, of course, without reloading the page, everything will work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Prilepa, 2021-06-22
@Nolan81

Here is a good editor: https://github.com/mosch/react-avatar-editor
we make a file selection UI, pass the data to the editor, at the output we get blob data from the canvas and they can already be sent to back for writing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question