This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This gist will help you to fix orientation | |
* of image picked from local FS | |
* without canvas. | |
* CSS-only! | |
* | |
* @expample | |
* const img = document.createElement('img') | |
* img.src = URL.createObjectURL(file) | |
* img.style.transform = ORIENT_TRANSFORMS[ getOrientation(file) ] |
NewerOlder