[whatwg] Add EXIF metadata support in Canvas.toBlob?

Mark Callow callow.mark at artspark.co.jp
Thu Jun 13 20:06:12 PDT 2013


On 2013/06/08 5:42, David Flanagan wrote:
>
> [A related, but perhaps too ambitious, proposal is to allow direct
> read/write access to EXIF metadata via HTMLImageElement.  The primary
> use case for read access is to enable web apps to trivially determine
> when, where, and how a photo was taken and also to determine
> authorship and copyright information for an image.  The primary use
> case for write access might be for selectively stripping metadata. It
> would be nice to be able to protect user privacy with code as simple
> as |delete image.metadata.geolocation| for example.]
>
I enthusiastically second this. I think the primary use case is to make
it trivial for JS to be able to orient an image according to its EXIF
orientation when displaying it on the page. And this use case is huge.
The vast majority of cameras today tag images with the camera's
orientation when a picture is made.  Today you have the following
choices in order to have the image displayed correctly:

 1. create a copy of the image rotated to a top-left orientation
 2. manually apply a CSS style that rotates the image according to its
    specific orientation
 3. A hack using BinaryBlobs, extensive knowledge of the EXIF metadata
    format and I don't know what else.

None are appealing.

Regards

    -Mark

-- 
注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合
が有ります。正式なメール受信者では無い場合はメール複製、 再配信または情
報の使用を固く禁じております。エラー、手違いでこのメールを受け取られまし
たら削除を行い配信者にご連絡をお願いいたし ます.

NOTE: This electronic mail message may contain confidential and
privileged information from HI Corporation. If you are not the intended
recipient, any disclosure, photocopying, distribution or use of the
contents of the received information is prohibited. If you have received
this e-mail in error, please notify the sender immediately and
permanently delete this message and all related copies.




More information about the whatwg mailing list