RotationCSS
This npm package parses the exif data of a jpeg file and returns a hash that has the necessary CSS to rotate the image correctly.
; const inputElement = document const imageElement = document const reader = ; reader { imageElementsrc = eventtargetresult; imageElementstyle = ; }; reader;
This package uses code based on Exif.js to extract the actual metadata.