Re: [whatwg] Effect of image-orientation on naturalWidth/Height

> On Mar 9, 2015, at 5:06 PM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
> 
> On 3/9/15, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> That's a good question.  I suspect that .naturalWidth/Height should
>> return the image's dimensions before applying CSS rotations.
> 
> I think that that is not what Seth was asking about. IIUC, he asked
> about EXIF rotation info. When you take a pic in your iPhone, if there
> is rotation data on it, and if that data is not removed, the image
> will look rotated in browsers that recognize this header, like Safari.

No, Tab is right. The question is about the CSS image-orientation property, which allows (among other things) an image to be rotated according to the orientation specified in its EXIF info.

- Seth

Received on Tuesday, 10 March 2015 00:13:28 UTC