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
I haven't seen anyone mention the browser-image-compression library. It's got a helper function perfect for this.
Usage: const orientation = await imageCompression.getExifOrientation(file)
const orientation = await imageCompression.getExifOrientation(file)
Such a useful tool in many other ways too.