This commit is contained in:
Ross
2023-12-26 18:01:30 +00:00
parent ec0cd34700
commit 0befdaa665
+3 -3
View File
@@ -239,10 +239,10 @@ class SeriesImageBase(models.Model):
return info
def generate_hashes(self):
image_hash, is_dicom = get_image_hash(self.image, hash_type="md5", direct_pixel_data=False)
#image_hash, is_dicom = get_image_hash(self.image, hash_type="md5", direct_pixel_data=False)
self.is_dicom = is_dicom
self.image_md5_hash = image_hash
#self.is_dicom = is_dicom
#self.image_md5_hash = image_hash
image_blake3_hash, is_dicom = get_image_hash(self.image, hash_type="blake3", direct_pixel_data=True)
self.is_dicom = is_dicom