Return a new |Image| subclass instance parsed from the image binary contained in `blob`.
(cls, blob: bytes)
| 27 | |
| 28 | @classmethod |
| 29 | def from_blob(cls, blob: bytes) -> Image: |
| 30 | """Return a new |Image| subclass instance parsed from the image binary contained |
| 31 | in `blob`.""" |
| 32 | stream = io.BytesIO(blob) |
| 33 | return cls._from_stream(stream, blob) |
| 34 | |
| 35 | @classmethod |
| 36 | def from_file(cls, image_descriptor: str | IO[bytes]): |