This commit is contained in:
@ -16,7 +16,7 @@ def open_image_as_array(path):
|
||||
|
||||
|
||||
def get_encoded_img(arr):
|
||||
img = Image.fromarray(arr).convert("L")
|
||||
img = Image.fromarray(arr)
|
||||
img_byte_arr = io.BytesIO()
|
||||
img.save(img_byte_arr, format='PNG')
|
||||
encoded_img = base64.encodebytes(img_byte_arr.getvalue()).decode('ascii')
|
||||
|
Reference in New Issue
Block a user