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