Digital camera photos are often saved as JPEG with an EXIF \"orientation\" tag. To display correctly, images need to be rotated/mirrored depending on which orientation is se
In addition to @fareed namrouti's answer,
This should be used if the image has to be browsed from a file input element
image after transform: