javascript - Image wrong orientation in html5 preview -


suppose image not upright (i open in window browser , image not upright), when upload server (such gmail, stackoverflow). image becomes upright.

i asked question writing preview logic html5 , javascript. image talk show see in window browser. wondering if server did trick adjust orientation?

image shown in windows:

enter image description here

image directly upload stack overflow:

enter image description here

i'm guessing talking image generate or manipulate client-side using canvas element rendered img tag. correct?

server-side, orientation can determined looking @ image's exif orientation flag. possible examine flag client-side using library jquery fileexif.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -