# Usage of EXIF in images

**URL:** <https://discuss.httparchive.org/t/usage-of-exif-in-images/1898>\
**Category:** Uncategorized\
**Created:** [March 27, 2020, 10:19am UTC](https://discuss.httparchive.org/t/usage-of-exif-in-images/1898 "2020-03-27T10:19:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noamr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/noamr/32/1747_2.png) [@noamr](https://discuss.httparchive.org/u/noamr)\
**Post date:** [March 27, 2020, 10:19am UTC](https://discuss.httparchive.org/t/usage-of-exif-in-images/1898/1 "2020-03-27T10:19:33Z")

</div>

What would be the correct way, if at all, to add a custom metric that measures usage of EXIF attributes in images on the web (if such metric doesn’t already exist?)

The use case: [https://discourse.wicg.io/t/proposal-exif-image-resolution-auto-and-from-image/4326](https://discourse.wicg.io/t/proposal-exif-image-resolution-auto-and-from-image/4326)

EXIF is now supported in browser specs in the `image-orientation` CSS attribute, and we’re looking for a way to assess the effect of supporting more EXIF attributes on existing websites.

---

<div class="post-metadata">

**Author:** ![rviscomi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/rviscomi/32/835_2.png) [@rviscomi](https://discuss.httparchive.org/u/rviscomi)\
**Post date:** [March 27, 2020, 9:17pm UTC](https://discuss.httparchive.org/t/usage-of-exif-in-images/1898/2 "2020-03-27T21:17:33Z")

</div>

To answer the broader question, custom metrics are implemented using snippets of JS that are added to the [custom\_metrics](https://github.com/HTTPArchive/legacy.httparchive.org/tree/master/custom_metrics) directory of the test server on GitHub. The meat of your question is about how to write a JS snippet to analyze EXIF attributes, which I’m not sure about. Maybe @patmeenan or @colin know?

---

<div class="post-metadata">

**Author:** ![patmeenan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/patmeenan/32/605_2.png) [@patmeenan](https://discuss.httparchive.org/u/patmeenan)\
**Post date:** [March 27, 2020, 9:29pm UTC](https://discuss.httparchive.org/t/usage-of-exif-in-images/1898/3 "2020-03-27T21:29:33Z")

</div>

You can’t do it from JS. It would be an agent modification to wptagent to scan for whatever we’re specifically looking for. It already scans the JPEG blocks to count the progressive scans but it doesn’t do anything with EXIF yet.
