jupylet/app.py
def _a2b(a, format='JPEG', **kwargs):
    """Encode a numpy array of an image using given format."""

    b0 = io.BytesIO()
    i0 = PIL.Image.fromarray(a)
    i0.save(b0, format, **kwargs)
    return b0.getvalue()
Encode a numpy array of an image using given format.
Encode a numpy array of an image using given format.
Encode a numpy array of an image using given format .
def _a2b(a, format='JPEG', **kwargs):
    b0 = io.BytesIO()
    i0 = PIL.Image.fromarray(a)
    i0.save(b0, format, **kwargs)
    return b0.getvalue()
def _a2b ( a , format = 'JPEG' , ** kwargs ) : b0 = io . BytesIO ( ) i0 = PIL . Image . fromarray ( a ) i0 . save ( b0 , format , ** kwargs ) return b0 . getvalue ( )
Encode a numpy array of an image using given format.
Encode a numpy array of an image using given format .
"""Encode a numpy array of an image using given format."""
a
format