Answer the question
In order to leave comments, you need to log in
How to crop a photo on the server to keep the aspect ratio?
After uploading a photo to the server that is larger than 1000px, maybe even 4000px, you need to crop it to get a photo of different sizes - thunbnail, medium, slightly larger, etc.
The implementation language is not important. You need one that has good libraries. Or you can use Linux utilities through the command line, then any language will do.
1) How to choose the language and library? What will be the cropping algorithm? After all, you also need to consider size and orientation.
2) Or how to do it using Linux tools, or out of the box, or through popular utilities?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question