PIL cannot identify image file for io.BytesIO object

后端 未结 3 594
情话喂你
情话喂你 2020-11-27 06:38

I am using the Pillow fork of PIL and keep receiving the error

OSError: cannot identify image file <_io.BytesIO object at 0x103a47468>

3条回答
  •  时光取名叫无心
    2020-11-27 07:22

    While reading Dicom files the problem might be caused due to Dicom compression. Make sure both gdcm and pydicom are installed.

    GDCM is usually the one that's more difficult to install. The latest way to easily install the same is

    conda install -U conda-forge gdcm
    

提交回复
热议问题