fengyuanchen / compressorjs

JavaScript image compressor.
https://fengyuanchen.github.io/compressorjs/
MIT License
5.23k stars 439 forks source link

Pictures of any size have not changed in Safari #166

Closed Tithy closed 1 year ago

Tithy commented 1 year ago

ios 15.5

Tithy commented 1 year ago

https://fengyuanchen.github.io/compressorjs/ Select any image, change the quality, the image size has not changed, not on Android and PC. The parameters I introduced when testing are quality: 0.6,strict:false,It did not work as expected。 Subsequently, when I tested it using the official website, I also got consistent results in Safari. Images of any size get results after changing the quality and the original image has not been changed.

ps: Forgive the bad English and use translation software.

fengyuanchen commented 1 year ago

Cannot reappear.

Try this:

  1. Set the strict option to false.
  2. Set the quality option to 0.1.
Tithy commented 1 year ago

Sorry I tested some photos that did work, I tested 20Mb and 5Mb or so images just didn't change, you can try this image, according to your settings and did not send changes. 微信图片_20221127165204

Tithy commented 1 year ago

This may be related to the fact that the canvas area in iOS memory exceeds the maximum limit, and there is no solution for the time being