The image has shape (224, 224, 3) and is generated by the LIME algorithm, if that is relevant...
I can display it in jupyter notebook with plotly imshow(),
but when I try to make it into a png (or jpg) with PIL Image.fromarray, it becomes corrupted somehow.
Here's the code, help much appreciated! :)
img_boundry = mark_boundaries(temp/255.0, mask)
print(img_boundry.shape)
# try to convert to image somehow
imgg = Image.fromarray(img_boundry, "RGB") # np.swapaxes(img_boundry, 0, 1)
imgg.save("TEST.png")
fig=px.imshow(img_boundry)
fig.show()

