search

Home  >  Q&A  >  body text

php - Javascript compress images

Use input to select multiple images on the page , compress them first, then save them to the input of the selected image, and then submit to the background with other text information through the form method. The background receives through php code. How should this be implemented? I hope someone can give me some advice! ! ! Urgent! Urgent! ! !

某草草某草草2816 days ago615

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-05-27 17:44:40

    https://qiutc.me/post/uploadi...

    reply
    0
  • 怪我咯

    怪我咯2017-05-27 17:44:40

    For compression, first read the image content and draw it into the canvas, then convert the canvas into a blob, and then pass it to the backend through formdata

    reply
    0
  • 怪我咯

    怪我咯2017-05-27 17:44:40

    I recommend you take a look at this, it’s very good and can be used on mobile phones without any problems.

    reply
    0
  • Cancelreply