image_stream property

image_stream property

The destination stream the converter will write the image bytes into after this callback returns.

Replace it with your own writable stream (e.g., a io.RawIOBase for disk persistence or a io.BytesIO you intend to read afterwards).

Definition:

@property
def image_stream(self):
    ...
@image_stream.setter
def image_stream(self, value):
    ...

See Also