Return a new |Image| object loaded from the image binary in `blob`.
(cls, blob: bytes, filename: str | None = None)
| 149 | |
| 150 | @classmethod |
| 151 | def from_blob(cls, blob: bytes, filename: str | None = None) -> Image: |
| 152 | """Return a new |Image| object loaded from the image binary in `blob`.""" |
| 153 | return cls(blob, filename) |
| 154 | |
| 155 | @classmethod |
| 156 | def from_file(cls, image_file: str | IO[bytes]) -> Image: |