masto-fe/app/javascript/mastodon/utils
ThibG a1ce9cbb67
Fix uploaded image orientation in some browsers (#13493)
Some browsers (at least recent Chrome versions) automatically take
image metadata into account when drawing images into a canvas.
There seem to be no way to prevent that behavior, and the only
way to detect it seems to compare with a known image.

See: https://github.com/w3c/csswg-drafts/issues/4666
Solution adapted from: 1e4df70782
2020-04-18 15:37:03 +02:00
..
__tests__ Add comment, test to unescapeHTML (#7949) 2018-07-05 19:19:38 +09:00
base64.js Refactor resizeImage method (#7236) 2018-04-23 09:15:51 +02:00
html.js Add comment, test to unescapeHTML (#7949) 2018-07-05 19:19:38 +09:00
log_out.js Migrate Rails ujs as required for Rails 6 Upgrade. (#13280) 2020-03-21 03:14:50 +01:00
numbers.js Fix shortNumberFormat to within 3 chars without units (#12706) 2019-12-29 16:59:25 +01:00
resize_image.js Fix uploaded image orientation in some browsers (#13493) 2020-04-18 15:37:03 +02:00
scrollbar.js Do not add margin light when opening modal on mobile (#11830) 2019-09-29 14:30:58 +02:00