(cls, imagebytes)
| 429 | |
| 430 | @classmethod |
| 431 | def encodingof(cls, imagebytes): |
| 432 | type = imghdr.what(None, h=imagebytes) |
| 433 | if type == 'jpeg': |
| 434 | return ImageEncoding.JPEG |
| 435 | return ImageEncoding.Unknown # pragma: no cover |
| 436 | |
| 437 | |
| 438 | class SignatureType(IntEnum): |