(self)
| 98 | |
| 99 | |
| 100 | def __str__(self): |
| 101 | color_type = ("Grayscale", None, "RGB", "Indexed", "Grayscale-alpha", None, "RGB-alpha") |
| 102 | s = f"Name: {self.name}\t\tPath: {self.path}" |
| 103 | s += f"Size: {self.width} x {self.height}\n" |
| 104 | s += f"Color Type = {color_type[self.color_type]}({self.color_type})\n" |
| 105 | s += f"Channel(s): {Png.channels_lookup[self.color_type]}\n" |
| 106 | s += f"Bit Depth: {self.bit_depth}" |
| 107 | return s |
| 108 | |
| 109 | |
| 110 | def check_crc(image_bytes:bytes, chunk_starting_index:int) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected