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

Karl Dubost karld at opera.com
Fri Aug 26 11:13:23 PDT 2011


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




More information about the whatwg mailing list