mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
9b51b9bf4e
On iOS 15 beta, if you select the camera app when uploading an image and try to upload a freshly taken picture, from the second picture onwards the resize WASM operation will return an array filled with zeroes. Since every 4th byte is alpha, and at this step we are only dealing with non-transparent images this a O(1) way to detect that the bug was hit. (On normal images, all 4th bytes are 255 at this point) Also adds a "catch-all" when the original image became too small to try to accomodate other bugs of the same type. By default we only trigger this whole operation on images over 1MB, so if the end result is <20KB something weird did happen. Throwing here will let the upload continue using the original file, so nothing is lost and the user can continue. |
||
---|---|---|
.. | ||
@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 |