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

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();
[NoInterfaceObject]
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