diff options
author | ThibG <thib@sitedethib.com> | 2020-04-18 15:37:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 15:37:03 +0200 |
commit | a1ce9cbb67facf705379355b9c8ec19c521b419c (patch) | |
tree | 5236f286b15a227ae1370e93257344e2e97e8830 /app/controllers/admin/dashboard_controller.rb | |
parent | e12a5635da7de5a1c3b08b2ce420ee8a56ae4aff (diff) |
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: https://github.com/blueimp/JavaScript-Load-Image/commit/1e4df707821a0afcc11ea0720ee403b8759f3881
Diffstat (limited to 'app/controllers/admin/dashboard_controller.rb')
0 files changed, 0 insertions, 0 deletions