There are some hard limits in browser Canvas implementations, that will throw a runtime exception when crossed. Since those limits are platform dependent, the best we can do is catch it and back off from trying to optimize a problematic file. For example, a 60MB PNG can be processed fine by Chrome but Firefox will fail trying to extract the ImageData from the CanvasRenderingContext2D with NS_ERROR_FAILURE. Also cleans up the media-optimization-utils and add post-resize size logs |
||
|---|---|---|
| .. | ||
| @json-editor/json-editor/2.5.2 | ||
| ace | ||
| ace.js/1.4.12 | ||
| chart.js | ||
| chartjs-plugin-datalabels/0.7.0 | ||
| diffhtml/1.0.0-beta.18 | ||
| magnific-popup/1.1.0 | ||
| pikaday/1.8.0 | ||
| spectrum-colorpicker/1.8.0 | ||
| squoosh | ||
| workbox | ||
| Chart.min.js | ||
| chartjs-plugin-datalabels.min.js | ||
| count.js | ||
| diffhtml.min.js | ||
| embed-topics.js | ||
| embed.js | ||
| jquery.magnific-popup.min.js | ||
| media-optimization-worker.js | ||
| pikaday.js | ||
| spectrum.css | ||
| spectrum.js | ||