php - Javascript compress images
某草草
某草草 2017-05-27 17:42:40
0
3
506

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

某草草
某草草

reply all (3)
大家讲道理

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.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!