Return |Exif| instance having header properties parsed from Exif image in `stream`.
(cls, stream)
| 31 | |
| 32 | @classmethod |
| 33 | def from_stream(cls, stream): |
| 34 | """Return |Exif| instance having header properties parsed from Exif image in |
| 35 | `stream`.""" |
| 36 | markers = _JfifMarkers.from_stream(stream) |
| 37 | # print('\n%s' % markers) |
| 38 | |
| 39 | px_width = markers.sof.px_width |
| 40 | px_height = markers.sof.px_height |
| 41 | horz_dpi = markers.app1.horz_dpi |
| 42 | vert_dpi = markers.app1.vert_dpi |
| 43 | |
| 44 | return cls(px_width, px_height, horz_dpi, vert_dpi) |
| 45 | |
| 46 | |
| 47 | class Jfif(Jpeg): |
no outgoing calls
no test coverage detected