search

Home  >  Q&A  >  body text

javascript - What is the maximum compression ratio for canvas compressed images?

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?

大家讲道理大家讲道理2717 days ago944

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-06-12 09:30:20

    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.

    reply
    0
  • Cancelreply