discourse/public
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
..
images DEV: Remove emoji_one files (#13236) 2021-06-02 09:18:25 -04:00
javascripts FIX: Detect resize failures in the client size image optimization (#13589) 2021-06-30 16:01:17 -03:00
403.ar.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
403.be.html Update translations 2020-08-05 13:55:12 +00:00
403.bg.html Update translations 2020-08-05 13:55:12 +00:00
403.bs_BA.html Update translations 2020-08-05 13:55:12 +00:00
403.ca.html Update translations 2020-08-05 13:55:12 +00:00
403.cs.html Update translations 2020-08-05 13:55:12 +00:00
403.da.html Update translations 2020-08-05 13:55:12 +00:00
403.de.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
403.el.html Update translations 2020-09-01 13:02:16 +00:00
403.en_GB.html Update translations (#11779) 2021-01-20 22:58:26 +01:00
403.es.html Update translations 2020-08-05 13:55:12 +00:00
403.et.html Update translations 2020-08-05 13:55:12 +00:00
403.fa_IR.html Update translations (#11042) 2020-10-27 15:36:21 +01:00
403.fi.html Update translations 2020-08-05 13:55:12 +00:00
403.fr.html Update translations 2020-08-05 13:55:12 +00:00
403.gl.html Update translations (#11689) 2021-01-12 14:29:05 +01:00
403.he.html Update translations 2020-08-05 13:55:12 +00:00
403.html Force UTF-8 charset in nginx error pages 2013-06-20 14:54:43 +04:00
403.hu.html Update translations (#13327) 2021-06-08 16:32:36 +02:00
403.hy.html Update translations 2020-08-05 13:55:12 +00:00
403.id.html Update translations 2020-08-05 13:55:12 +00:00
403.it.html Update translations 2020-08-05 13:55:12 +00:00
403.ja.html Update translations (#13565) 2021-06-29 16:02:02 +02:00
403.ko.html Update translations 2020-09-16 10:17:56 +00:00
403.lt.html Update translations 2020-08-05 13:55:12 +00:00
403.lv.html Update translations 2020-08-05 13:55:12 +00:00
403.nb_NO.html Update translations 2020-08-05 13:55:12 +00:00
403.nl.html Update translations 2020-08-05 13:55:12 +00:00
403.pl_PL.html Update translations 2020-08-05 13:55:12 +00:00
403.pt.html Update translations 2020-08-05 13:55:12 +00:00
403.pt_BR.html Update translations 2020-08-05 13:55:12 +00:00
403.ro.html Update translations 2020-08-05 13:55:12 +00:00
403.ru.html Update translations 2020-08-05 13:55:12 +00:00
403.sk.html Update translations 2020-08-05 13:55:12 +00:00
403.sl.html Update translations 2020-08-05 13:55:12 +00:00
403.sq.html Update translations 2020-08-05 13:55:12 +00:00
403.sr.html Update translations 2020-08-05 13:55:12 +00:00
403.sv.html Update translations 2020-08-05 13:55:12 +00:00
403.sw.html Update translations 2020-08-05 13:55:12 +00:00
403.te.html Update translations 2020-08-05 13:55:12 +00:00
403.th.html Update translations 2020-08-05 13:55:12 +00:00
403.tr_TR.html Update translations 2020-08-05 13:55:12 +00:00
403.uk.html Update translations 2020-08-05 13:55:12 +00:00
403.ur.html Update translations 2020-08-05 13:55:12 +00:00
403.vi.html Update translations 2020-08-05 13:55:12 +00:00
403.zh_CN.html Update translations 2020-08-05 13:55:12 +00:00
403.zh_TW.html Update translations 2020-08-05 13:55:12 +00:00
404.json Initial release of Discourse 2013-02-05 14:16:51 -05:00
422.ar.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
422.be.html Update translations 2020-08-05 13:55:12 +00:00
422.bg.html Update translations 2020-08-05 13:55:12 +00:00
422.bs_BA.html Update translations 2020-08-05 13:55:12 +00:00
422.ca.html Update translations 2020-08-05 13:55:12 +00:00
422.cs.html Update translations 2020-08-05 13:55:12 +00:00
422.da.html Update translations 2020-08-05 13:55:12 +00:00
422.de.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
422.el.html Update translations 2020-09-01 13:02:16 +00:00
422.en_GB.html Update translations (#11848) 2021-01-26 14:52:35 +01:00
422.es.html Update translations 2020-08-05 13:55:12 +00:00
422.et.html Update translations 2020-08-05 13:55:12 +00:00
422.fa_IR.html Update translations (#12186) 2021-02-23 15:10:04 +01:00
422.fi.html Update translations 2020-08-05 13:55:12 +00:00
422.fr.html Update translations 2020-08-05 13:55:12 +00:00
422.gl.html Update translations (#11689) 2021-01-12 14:29:05 +01:00
422.he.html Update translations 2020-08-05 13:55:12 +00:00
422.html Force UTF-8 charset in nginx error pages 2013-06-20 14:54:43 +04:00
422.hu.html Update translations 2020-08-05 13:55:12 +00:00
422.hy.html Update translations 2020-08-05 13:55:12 +00:00
422.id.html Update translations 2020-08-05 13:55:12 +00:00
422.it.html Update translations 2020-08-05 13:55:12 +00:00
422.ja.html Update translations (#13565) 2021-06-29 16:02:02 +02:00
422.ko.html Update translations 2020-09-16 10:17:56 +00:00
422.lt.html Update translations 2020-08-05 13:55:12 +00:00
422.lv.html Update translations 2020-08-05 13:55:12 +00:00
422.nb_NO.html Update translations 2020-08-05 13:55:12 +00:00
422.nl.html Update translations 2020-08-05 13:55:12 +00:00
422.pl_PL.html Update translations 2020-08-05 13:55:12 +00:00
422.pt.html Update translations 2020-08-05 13:55:12 +00:00
422.pt_BR.html Update translations 2020-08-05 13:55:12 +00:00
422.ro.html Update translations 2020-08-05 13:55:12 +00:00
422.ru.html Update translations 2020-08-05 13:55:12 +00:00
422.sk.html Update translations 2020-08-05 13:55:12 +00:00
422.sl.html Update translations 2020-08-05 13:55:12 +00:00
422.sq.html Update translations 2020-08-05 13:55:12 +00:00
422.sr.html Update translations 2020-08-05 13:55:12 +00:00
422.sv.html Update translations 2020-09-09 14:59:40 +00:00
422.sw.html Update translations 2020-08-05 13:55:12 +00:00
422.te.html Update translations 2020-08-05 13:55:12 +00:00
422.th.html Update translations 2020-08-05 13:55:12 +00:00
422.tr_TR.html Update translations 2020-08-05 13:55:12 +00:00
422.uk.html Update translations 2020-08-05 13:55:12 +00:00
422.ur.html Update translations 2020-08-05 13:55:12 +00:00
422.vi.html Update translations 2020-08-05 13:55:12 +00:00
422.zh_CN.html Update translations 2020-08-11 13:04:00 +00:00
422.zh_TW.html Update translations 2020-08-05 13:55:12 +00:00
500.ar.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
500.be.html Update translations 2020-08-05 13:55:12 +00:00
500.bg.html Update translations 2020-08-05 13:55:12 +00:00
500.bs_BA.html Update translations 2020-08-25 13:02:37 +00:00
500.ca.html Update translations 2020-08-05 13:55:12 +00:00
500.cs.html Update translations (#12556) 2021-03-30 15:44:13 +02:00
500.da.html Update translations (#12412) 2021-03-16 15:49:29 +01:00
500.de.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
500.el.html Update translations 2020-08-11 13:04:00 +00:00
500.en_GB.html Update translations (#11779) 2021-01-20 22:58:26 +01:00
500.es.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
500.et.html Update translations 2020-08-05 13:55:12 +00:00
500.fa_IR.html Update translations (#12186) 2021-02-23 15:10:04 +01:00
500.fi.html Update translations (#13030) 2021-05-11 19:01:59 +02:00
500.fr.html Update translations 2020-08-05 13:55:12 +00:00
500.gl.html Update translations (#11689) 2021-01-12 14:29:05 +01:00
500.he.html Update translations 2020-08-05 13:55:12 +00:00
500.html FIX: remove link from 500.html since it often won't work, and update copy to not mention meta category name 2016-07-08 14:15:13 -04:00
500.hu.html Update translations 2020-08-05 13:55:12 +00:00
500.hy.html Update translations 2020-08-05 13:55:12 +00:00
500.id.html Update translations (#12097) 2021-02-16 15:24:37 +01:00
500.it.html Update translations (#11108) 2020-11-03 18:08:07 +01:00
500.ja.html Update translations (#13565) 2021-06-29 16:02:02 +02:00
500.ko.html Update translations 2020-09-15 13:04:17 +00:00
500.lt.html Update translations 2020-08-05 13:55:12 +00:00
500.lv.html Update translations 2020-08-05 13:55:12 +00:00
500.nb_NO.html Update translations 2020-08-05 13:55:12 +00:00
500.nl.html Update translations 2020-08-05 13:55:12 +00:00
500.pl_PL.html Update translations 2020-09-09 14:59:40 +00:00
500.pt.html Update translations 2020-08-05 13:55:12 +00:00
500.pt_BR.html Update translations 2020-10-13 15:40:37 +02:00
500.ro.html Update translations 2020-09-29 13:01:52 +00:00
500.ru.html Update translations 2020-08-05 13:55:12 +00:00
500.sk.html Update translations 2020-08-05 13:55:12 +00:00
500.sl.html Update translations 2020-08-05 13:55:12 +00:00
500.sq.html Update translations 2020-08-05 13:55:12 +00:00
500.sr.html Update translations (#12614) 2021-04-07 11:58:41 +02:00
500.sv.html Update translations 2020-09-09 14:59:40 +00:00
500.sw.html Update translations 2020-08-05 13:55:12 +00:00
500.te.html Update translations 2020-08-05 13:55:12 +00:00
500.th.html Update translations 2020-08-05 13:55:12 +00:00
500.tr_TR.html Update translations 2020-08-05 13:55:12 +00:00
500.uk.html Update translations 2020-08-11 13:04:00 +00:00
500.ur.html Update translations 2020-08-05 13:55:12 +00:00
500.vi.html Update translations (#11182) 2020-11-10 15:23:06 +01:00
500.zh_CN.html Update translations 2020-08-11 13:04:00 +00:00
500.zh_TW.html Update translations (#12258) 2021-03-02 15:28:30 +01:00
503.ar.html Update translations (#13476) 2021-06-22 15:21:20 +02:00
503.be.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.bg.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.bs_BA.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.ca.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.cs.html Update translations (#12556) 2021-03-30 15:44:13 +02:00
503.da.html Update translations (#12412) 2021-03-16 15:49:29 +01:00
503.de.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.el.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.en_GB.html Update translations (#11779) 2021-01-20 22:58:26 +01:00
503.es.html Update translations (#12614) 2021-04-07 11:58:41 +02:00
503.et.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.fa_IR.html Update translations (#12186) 2021-02-23 15:10:04 +01:00
503.fi.html Update translations (#13030) 2021-05-11 19:01:59 +02:00
503.fr.html Update translations (#11182) 2020-11-10 15:23:06 +01:00
503.gl.html Update translations (#12097) 2021-02-16 15:24:37 +01:00
503.he.html Update translations (#10970) 2020-10-20 15:34:57 +02:00
503.html Fix i18n issues reported on Crowdin (#10925) 2020-10-16 15:24:58 +02:00
503.hu.html Update translations (#13088) 2021-05-18 15:11:41 +02:00
503.hy.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.id.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.it.html Update translations (#11108) 2020-11-03 18:08:07 +01:00
503.ja.html Update translations (#13565) 2021-06-29 16:02:02 +02:00
503.ko.html Update translations (#11042) 2020-10-27 15:36:21 +01:00
503.lt.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.lv.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.nb_NO.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.nl.html Update translations (#11042) 2020-10-27 15:36:21 +01:00
503.pl_PL.html Update translations (#10970) 2020-10-20 15:34:57 +02:00
503.pt.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.pt_BR.html Update translations (#12851) 2021-04-27 16:01:06 +02:00
503.ro.html Update translations (#11756) 2021-01-19 16:14:59 +01:00
503.ru.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.sk.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.sl.html Update translations (#13088) 2021-05-18 15:11:41 +02:00
503.sq.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.sr.html Update translations (#12614) 2021-04-07 11:58:41 +02:00
503.sv.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.sw.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.te.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.th.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.tr_TR.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.uk.html Update translations (#11689) 2021-01-12 14:29:05 +01:00
503.ur.html Update translations (#10944) 2020-10-17 00:07:21 +02:00
503.vi.html Update translations (#11264) 2020-11-17 14:49:58 +01:00
503.zh_CN.html Update translations (#12258) 2021-03-02 15:28:30 +01:00
503.zh_TW.html Update translations (#12258) 2021-03-02 15:28:30 +01:00
popper.js.map FIX: Add popper sourcemap 2020-07-15 15:29:12 -04:00
route-recognizer.js.map FIX: Silence route-recognizer source map errors in development mode 2020-07-15 15:42:04 -04:00