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:
image directly upload stack overflow:
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
Post a Comment