E
E
Egor Sh2016-05-04 11:07:22
css
Egor Sh, 2016-05-04 11:07:22

How to make it possible to crop photos on the site into a square view without losing quality?

I need to make it possible to crop a photo on the site like in VK for avatars. In theory, I need to crop the photo before sending it to the server. I did it with canvas, but it shrinks it and the output is a poor quality photo. Advise how best to do it, maybe crop the photo on the server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
crescent, 2016-05-04
. @EgorkZe

On server.
I did something similar in java. There are functions for cropping with and without quality.

E
Eugene, 2016-05-06
@Eugeny1987

https://github.com/fengyuanchen/cropper

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question