search

Home  >  Q&A  >  body text

javascript - How does the front end implement cutting and uploading part of an image? How about uploading via WeChat or QQ? What technology is used?

How does the front-end realize cutting and uploading part of a picture? How about uploading via WeChat or QQ? What technology is used

女神的闺蜜爱上我女神的闺蜜爱上我2767 days ago1052

reply all(3)I'll reply

  • 扔个三星炸死你

    扔个三星炸死你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...

    reply
    0
  • 阿神

    阿神2017-07-05 10:57:59

    You can implement related operations through drawImage of canvas

    reply
    0
  • 世界只因有你

    世界只因有你2017-07-05 10:57:59

    Recommend this library: PhotoClip

    Demo address: http://htmlpreview.github.io/...
    The specific effect is as follows:

    reply
    0
  • Cancelreply