I have read this post and tried to open an image from bytes and actually i made it. but the problem is the image is not showing correctly. i don't know what is the original format of image but i know this is an dental X-Ray image. i`m asking if someone knows where is the problem and how can i fix it.
from PIL import Image
import io
image_data = ... #bytes
image = Image.open(io.BytesIO(image_data))
image.show()