aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/contentviews/image/image_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/contentviews/image/image_parser.py')
-rw-r--r--mitmproxy/contentviews/image/image_parser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/contentviews/image/image_parser.py b/mitmproxy/contentviews/image/image_parser.py
index e523def5..3a375006 100644
--- a/mitmproxy/contentviews/image/image_parser.py
+++ b/mitmproxy/contentviews/image/image_parser.py
@@ -19,4 +19,8 @@ def parse_png(data: bytes) -> Metadata:
parts.append(tuple(['aspect', str(aspectx) + " x " + str(aspecty)]))
elif chunk.type == 'tEXt':
parts.append(tuple([chunk.body.keyword, chunk.body.text]))
+ elif chunk.type == 'iTXt':
+ parts.append(tuple([chunk.body.keyword, chunk.body.text]))
+ elif chunk.type == 'zTXt':
+ parts.append(tuple([chunk.body.keyword, chunk.body.text_datastream.decode('iso8859-1')]))
return parts