DECIMER/config.py
def PIL_im_to_BytesIO(im):
    """
    Convert pillow image to io.BytesIO object
    ___
    im: PIL.Image
    ___
    Output: io.BytesIO object with the image data
    """
    output = io.BytesIO()
    im.save(output, format="PNG")
    return output

    Convert pillow image to io.BytesIO object
    ___
    im: PIL.Image
    ___
    Output: io.BytesIO object with the image data
    
Convert pillow image to io.BytesIO object
im: PIL.Image
Output: io.BytesIO object with the image data
Convert pillow image to io . BytesIO object im : PIL . Image Output : io . BytesIO object with the image data
def PIL_im_to_BytesIO(im):
    output = io.BytesIO()
    im.save(output, format="PNG")
    return output
def PIL_im_to_BytesIO ( im ) : output = io . BytesIO ( ) im . save ( output , format = "PNG" ) return output
Convert pillow image to io.BytesIO object
___
im: PIL.Image
___
Output: io.BytesIO object with the image data
Convert pillow image to io . BytesIO object ___ im : PIL . Image ___ Output : io . BytesIO object with the image data
"""
    Convert pillow image to io.BytesIO object
    ___
    im: PIL.Image
    ___
    Output: io.BytesIO object with the image data
    """
im