W3C home > Mailing lists > Public > public-media-capture@w3.org > March 2017

[mediacapture-image] Provide API for getting / setting metadata

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Mar 2017 09:36:37 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-216001823-1490175395-sysbot+gh@w3.org>
alexshalamov has just created a new issue for https://github.com/w3c/mediacapture-image:

== Provide API for getting / setting metadata ==
**Getting metadata**

At the moment, if  ‘auto’ photo settings are provided, there is no easy way to obtain information about parameters selected by the camera. Web developers would need to analyze blob by looking for jfif app markers and implementing exif / xmp parser.

**Setting metadata**

If API would provide way of getting metadata, web developers could fill missing parts if needed. For example, developers might want to use Geolocation API to set geolocation data, add author name or tags (keywords) related to the photo.

Promise<Photo> takePhoto();
interface Photo : Blob {
  readonly attribute PhotoMetadata metadata;
  void saveMetadata(PhotoMetadata metadata);

Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/154 using your GitHub account
Received on Wednesday, 22 March 2017 09:36:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 22 March 2017 09:36:44 UTC