jina.types.document.converters

jina.types.document.converters.png_to_buffer_1d(arr, width, height)[source]
Return type

bytes

jina.types.document.converters.pillow_image_to_buffer(image, image_format)[source]
Return type

bytes

jina.types.document.converters.png_to_buffer(arr, width, height, resize_method)[source]
jina.types.document.converters.to_datauri(mimetype, data, charset='utf-8', base64=False, binary=True)[source]
jina.types.document.converters.guess_mime(uri)[source]