# How to retrieve image details through the API of mitmdump script?

**URL:** <https://discourse.mitmproxy.org/t/how-to-retrieve-image-details-through-the-api-of-mitmdump-script/1213>\
**Category:** help\
**Created:** [September 7, 2018, 8:26am UTC](https://discourse.mitmproxy.org/t/how-to-retrieve-image-details-through-the-api-of-mitmdump-script/1213 "2018-09-07T08:26:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomlabaude](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@tomlabaude](https://discourse.mitmproxy.org/u/tomlabaude)\
**Post date:** [September 7, 2018, 8:26am UTC](https://discourse.mitmproxy.org/t/how-to-retrieve-image-details-through-the-api-of-mitmdump-script/1213/1 "2018-09-07T08:26:16Z")

</div>

How can I retrieve image info such as

> Format: Compuserve GIF  
> Version: GIF89a  
> Size: 1 x 1 px  
> background: 0

Tried http.response.text but nothing is displayed for an image.

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [September 7, 2018, 8:27am UTC](https://discourse.mitmproxy.org/t/how-to-retrieve-image-details-through-the-api-of-mitmdump-script/1213/2 "2018-09-07T08:27:44Z")

</div>

That comes from the contentview, so you’d need to interface with mitmproxy.contentviews. There are unfortunately no docs for that, so please post here if you made it work for you.
