Use input to selectmultiple images on the page, compress them first, then save them to the input of the selected image, and then submitto the background with other text information through theform method. The background receivesthroughphp code. How should this be implemented? I hope someone can give me some advice! ! ! Urgent! Urgent! ! !
https://qiutc.me/post/uploadi...
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
I recommend you take a look at this, it’s very good and can be used on mobile phones without any problems.