W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2014

Re: [whatwg] canvas drawImage and EXIF orientation metadata

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 16 Apr 2014 15:26:55 +0100
Message-ID: <CADnb78hsU-vbqGLyQXOwj3ZuOPo27HN-yKyy0vv_vRzRbikndQ@mail.gmail.com>
To: Justin Novosad <junov@google.com>
Cc: whatwg <whatwg@lists.whatwg.org>, Boris Zbarsky <bzbarsky@mit.edu>
On Wed, Apr 16, 2014 at 3:22 PM, Justin Novosad <junov@google.com> wrote:
> But why a new version of drawImage? Couldn't we just modify the existing
> drawImage definition to state that it takes into account the
> image-orientation property on the source image?  The default value for
> image-orientation is 0deg, which corresponds to the current drawImage
> behavior. So I think we can make that change to the drawImage spec without
> breaking stuff, as long as we make the change while image-orientation is
> still an experimental feature.

Why is image-orientation in CSS for <img>? For background-image that
makes sense, but if you are actually affecting the semantics of the
image that is displayed, it seems like it should be in HTML or a hint
in the image format.

(My reply to Boris was going to be that drawImage() should follow
whatever flag we introduce for <img> to have this behavior, seems
weird for that flag to be in CSS though.)


-- 
http://annevankesteren.nl/
Received on Wednesday, 16 April 2014 14:27:19 UTC

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