I tried to open .img images with PIL/pillow library but it seems like it does not support reading them. What can I do?
from PIL import Image
image=Image.open('C:/Users/mkmoh/Dropbox/20250317/MOR_L_20250317_192902_002.img')
image.show()
you can find bellow the error message.
---------------------------------------------------------------------------
UnidentifiedImageError Traceback (most recent call last)
Cell In[25], line 2
1 from PIL import Image
----> 2 image=Image.open('C:/Users/mkmoh/Dropbox/20250317/MOR_L_20250317_192902_002.img')
3 image.show()
File ~\anaconda3\Lib\site-packages\PIL\Image.py:3498, in open(fp, mode, formats)
3496 warnings.warn(message)
3497 msg = "cannot identify image file %r" % (filename if filename else fp)
-> 3498 raise UnidentifiedImageError(msg)
UnidentifiedImageError: cannot identify image file 'C:\\Users\\mkmoh\\Dropbox\\20250317\\MOR_L_20250317_192902_002.img'
Thank you in advance