diff options
| -rw-r--r-- | mitmproxy/contentviews/image/image_parser.py | 12 | ||||
| -rw-r--r-- | mitmproxy/contentviews/image/view.py | 1 | 
2 files changed, 7 insertions, 6 deletions
| diff --git a/mitmproxy/contentviews/image/image_parser.py b/mitmproxy/contentviews/image/image_parser.py index aa6f8450..fcc50cb5 100644 --- a/mitmproxy/contentviews/image/image_parser.py +++ b/mitmproxy/contentviews/image/image_parser.py @@ -91,12 +91,12 @@ def parse_ico(data: bytes) -> Metadata:      for i, image in enumerate(img.images):          parts.append(              ( -                'Image {}'.format(i+1), "Size: {} x {}\n" -                                        "{: >18}Bits per pixel: {}\n" -                                        "{: >18}PNG: {}".format(256 if not image.width else image.width, -                                                                256 if not image.height else image.height, -                                                                '', image.bpp, -                                                                '', image.is_png) +                'Image {}'.format(i + 1), "Size: {} x {}\n" +                                          "{: >18}Bits per pixel: {}\n" +                                          "{: >18}PNG: {}".format(256 if not image.width else image.width, +                                                                  256 if not image.height else image.height, +                                                                  '', image.bpp, +                                                                  '', image.is_png)              )          ) diff --git a/mitmproxy/contentviews/image/view.py b/mitmproxy/contentviews/image/view.py index 8fe7017a..6f75473b 100644 --- a/mitmproxy/contentviews/image/view.py +++ b/mitmproxy/contentviews/image/view.py @@ -9,6 +9,7 @@ def test_ico(h, f):      if h.startswith(b"\x00\x00\x01\x00"):          return "ico" +  imghdr.tests.append(test_ico) | 
