[whatwg] Add "naturalOrientation" property to <img>

Le 26 ao?t 2011 ? 11:37, Tab Atkins Jr. a ?crit :
> The <img> element should expose a readonly "naturalOrientation"
> property that returns the EXIF orientation of the image (an integer
> 1-8), or 1 if the image has no EXIF orientation metadata or it is
> corrupted or the image type doesn't expose EXIF data at all.


Maybe an issue I can see is that people who are working on the image in a certain orientation and other people loading this image from elsewhere. (Think Flickr images for example). 

1. The person makes the edit on Flickr with a UI where the image is rotated by the browser.
2. A person browse flickr, find an image (still rotated), get the link and insert it in a blog post. The image is not anymore rotated. 


Why not having a full EXIF API giving access to more date and helping to fix the dates, the location, etc. The same way you do with desktop tools?

-- 
Karl Dubost - http://dev.opera.com/
Developer Relations & Tools, Opera Software

Received on Friday, 26 August 2011 11:13:23 UTC