(encoding)
| 88 | |
| 89 | |
| 90 | def decode_base64_to_image(encoding): |
| 91 | from PIL import Image |
| 92 | content = encoding.split(';')[1] |
| 93 | image_encoded = content.split(',')[1] |
| 94 | return Image.open(BytesIO(base64.b64decode(image_encoded))) |
| 95 | |
| 96 | |
| 97 | def encode_array_to_img_base64(image_array): |
no test coverage detected
searching dependent graphs…