discourse/public/javascripts
Rafael dos Santos Silva 9b51b9bf4e
FIX: Detect resize failures in the client size image optimization (#13589)
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.
2021-06-30 16:01:17 -03:00
..
@json-editor/json-editor/2.5.2 DEV: Add experimental json_scheme site setting type (#12226) 2021-03-01 09:15:17 -05:00
ace DEV: Upgrade ACE Editor to 1.4.12, remove extra ACE files (#10431) 2020-08-13 21:53:27 -04:00
ace.js/1.4.12 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
chart.js DEV: Update chart.js from 2.9.3 to 2.9.4 (#13026) 2021-05-12 17:28:16 +02:00
chartjs-plugin-datalabels/0.7.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
diffhtml/1.0.0-beta.18 FEATURE: Use diffhtml to update composer preview (#11237) 2021-02-18 16:07:26 +02:00
magnific-popup/1.1.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
pikaday/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
spectrum-colorpicker/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
squoosh FEATURE: Optimize images before upload (#13432) 2021-06-23 12:31:12 -03:00
workbox DEV: enable CORS to all CDN get requests from workbox. (#11896) 2021-02-02 11:38:29 +05:30
Chart.min.js DEV: Update chart.js from 2.9.3 to 2.9.4 (#13026) 2021-05-12 17:28:16 +02:00
chartjs-plugin-datalabels.min.js FEATURE: Poll breakdown 2.0 (#10345) 2020-08-06 17:57:06 +02:00
count.js
diffhtml.min.js FEATURE: Use diffhtml to update composer preview (#11237) 2021-02-18 16:07:26 +02:00
embed-topics.js FIX: The attribute is `discourse-url` not `data-discourse-url` 2020-10-28 17:12:29 -04:00
embed.js FEATURE: Use "no-referrer-when-downgrade" as our embed policy 2020-10-16 13:23:06 -04:00
jquery.magnific-popup.min.js
media-optimization-worker.js FIX: Detect resize failures in the client size image optimization (#13589) 2021-06-30 16:01:17 -03:00
pikaday.js DEV: pikaday 1.8.0 (#7536) 2019-05-13 15:09:04 +02:00
spectrum.css
spectrum.js Update moment and spectrum 2020-01-06 12:56:47 -05:00