W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2011

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

From: Karl Dubost <karld@opera.com>
Date: Fri, 26 Aug 2011 14:13:23 -0400
Message-ID: <AA03F7BE-DEFE-4BB9-A026-DF98939FF78A@opera.com>

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC