javascript - What is the maximum compression ratio for canvas compressed images?
大家讲道理
大家讲道理 2017-06-12 09:28:20
0
1
865

A recent project requires compressing and uploading images, using canvas to compress the images. It was found that canvas has different minimum compression ratios for different images.
For the largest 22M picture, the smallest one can only be compressed to about 900k, and the compression ratio is 0.036. One of the photos (only about 900k, jpeg format) can only be compressed to a minimum of about 200k.
Does any student know the reason?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (1)
Ty80

After testing, it is related to the size of the image. When the size of the image is too large, the size of the image needs to be limited.

    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!