How does the front-end realize cutting and uploading part of a picture? How about uploading via WeChat or QQ? What technology is used
扔个三星炸死你2017-07-05 10:57:59
This problem is divided into two parts: front and back.
On the Web front-end, you can use JCrop to do image cropping. In fact, it is not real cropping, but selecting an area on the image. The real cropping is done by the backend.
JCrop DEMO: http://deepliquid.com/project...
In the backend, different languages have APIs for image cropping. You can check the relevant documents. In addition, you can also use some cloud storage cropping functions. Alibaba Cloud and Qiniu have image cropping functions, such as Qiniu: https://developer.qiniu.com/d...
世界只因有你2017-07-05 10:57:59
Recommend this library: PhotoClip
Demo address: http://htmlpreview.github.io/...
The specific effect is as follows: