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

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

From: James Salsman <jsalsman@gmail.com>
Date: Fri, 26 Aug 2011 14:08:53 -0700
Message-ID: <CAD4=uZZSSwPTH8FNahMzYnLJPtowqjc-FeZY47u=jrU7NrCmig@mail.gmail.com>
Maybe someone should ask the browser vendors how many img formats they
support and what the code footprint memory overhead would be for
adding rotation support for those which are likely to need it at
whatever confidence level you feel is appropriate.


On Fri, Aug 26, 2011 at 9:57 AM, Glenn Maynard <glenn at zewt.org> wrote:
> On Fri, Aug 26, 2011 at 11:37 AM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:
>
>> Summary
>> =======
>> 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.
>>
>
> Rather than baking magic EXIF constants into the API, would it make more
> sense to translate to degrees?
>
> --
> Glenn Maynard
>
Received on Friday, 26 August 2011 14:08:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:08 UTC