[mediacapture-image] Extend getPhotoSettings() to include additional EXIF data (#209)

Joe-Palmer has just created a new issue for https://github.com/w3c/mediacapture-image:

== Extend getPhotoSettings() to include additional EXIF data ==
When I take a picture using the default camera app, I get loads of really useful information in the EXIF data, for example:

![58587107-772fdd00-8254-11e9-8139-967a49947f3f](https://user-images.githubusercontent.com/1328310/58944083-fa7f9000-8778-11e9-8400-7dbc1a37af6f.png)

However, I can see no way to get this data from the Media Stream Image Capture APIs (please correct me if I am wrong).

So, I propose that `getPhotoSettings()` is extended to return additional information normally embedded as EXIF data. The values that would be most useful are the following:

- Aperture Value
- Exposure Time
- F Number
- Focal Length
- Focal Length in 33mm Film
- ISO Speed Rating

As `getPhotoSettings()` already returns the width and height, it seems like the best place to return this additional data. An alternative would be embed the information as EXIF data in the image returned by `takePhoto()` but this does not feel like a great solution as you would then have to `takePhoto()` and then decode the EXIF data every time you wanted to access these values.

Thoughts and comments? I am very keen on this feature so would be happy to help in any way to get it implemented. More details on what I am doing are in issue https://github.com/w3c/mediacapture-image/issues/208 and this proposal would solve that issue.

Thanks for your consideration.

Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/209 using your GitHub account

Received on Wednesday, 5 June 2019 09:23:11 UTC