[whatwg] Add "naturalOrientation" property to <img>
Tab Atkins Jr.
jackalmage at gmail.com
Tue Aug 30 09:05:22 PDT 2011
On Fri, Aug 26, 2011 at 9:04 PM, Karl Dubost <karld at opera.com> wrote:
> Le 26 août 2011 à 16:49, Tab Atkins Jr. a écrit :
>> If Flickr uses this CSS property, and does so
>> in different ways in the two places, that's just a Flickr bug.
> Flickr offers tools to process images.
> Flickr offers hosting of images.
> People using the hosting do not necessary use Flickr CSS and Flickr markup.
Oh, I see the issue now. Sorry, I misread your previous email.
In that case, the objection still doesn't seem to apply. If you are
using Flickr's photo-editting tools (which presumably use <canvas>, or
at least Flash), and those tools use .naturalOrientation to
automatically rotate the image for you, then the saved image will be a
*new image* produced by one of the <canvas> or Flash export methods.
This new image will either have no orientation or the default
orientation, not whatever the original image's orientation was.
If you *aren't* using Flickr's editting tools, just uploading the
image directly and then hotlinking it, .naturalOrientation never plays
a part. Flickr *may* use a CSS property like the proposed
'image-orientation' to auto-rotate the image when it's displayed,
which would run into the trouble you mention (image appears "correct"
on Flickr, but rotated on your website where Flickr's CSS isn't
applying), but that's irrelevant for the .naturalOrientation proposal.
More information about the whatwg