(cls, stream)
| 31 | |
| 32 | @classmethod |
| 33 | def _dimensions_from_stream(cls, stream): |
| 34 | stream.seek(6) |
| 35 | bytes_ = stream.read(4) |
| 36 | struct = Struct("<HH") |
| 37 | px_width, px_height = struct.unpack(bytes_) |
| 38 | return px_width, px_height |
no test coverage detected