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! ! !
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.