Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>From what I understand, you do not wish to actually transform the image and roatate it's pixel data, but instead "display" it rotated.</p> <p>I've never thought about this before and not familier with EXIF etc. But of the top of my head.</p> <p><strong>Displaying the orientation in the browser</strong></p> <p>The really tricky bit is going to be displaying it in the browser.</p> <p>Here are a couple of feature requests discussing adhearing to orientation in browsers:</p> <p>firefox: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=298619" rel="nofollow noreferrer">https://bugzilla.mozilla.org/show_bug.cgi?id=298619</a></p> <p>chrome: <a href="http://code.google.com/p/chromium/issues/detail?id=56845" rel="nofollow noreferrer">http://code.google.com/p/chromium/issues/detail?id=56845</a></p> <p>I haven't read these requests fully, so I'm not sure exactly of their status, but could be interseting reading for you.</p> <p><strong>Getting EXIF data</strong> </p> <p>If the browser doesn't support built in EXIF orientation (which it probably doesn't), first you need to get ahold of the EXIF data, you could do this client side by looking at the raw binary data being pulled from the server...</p> <p>But I'm guessing doing it server-side would be much easier.</p> <p>Here is a c# library for getting EXIF data <a href="http://www.codeproject.com/KB/graphics/exifextractor.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/graphics/exifextractor.aspx</a> Admitadly I didn't find it, it was discussed here: <a href="https://stackoverflow.com/questions/58649/how-to-get-the-exif-data-from-a-file-using-c">How to get the EXIF data from a file using C#</a></p> <p>You could either</p> <ul> <li>Rotate it manually via server side code (actually manipulating the pixels - probably loads of libraries to do this, probably built into .net)</li> <li>Using Flash rotate it (infact I think flash maybe able to read EXIF directly)</li> <li>Using the HTML canvas to rotate (maybe using jquery rotate or something similar)</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload