This commit is contained in:
Ross
2025-01-06 11:14:34 +00:00
parent f0c5964a5a
commit d891c7b9ee
11 changed files with 52 additions and 19 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ def pil_dicom_image(source, exif_orientation=True, **options):
#source = BytesIO(source.read())
# open file with pydicom
ds = pydicom.read_file(source)
ds = pydicom.dcmread(source)
# return the image file
return get_PIL_image(ds)