diff Sphinx/source/plugins/python/pil-conversions.py @ 977:caf69d2ee070

fix Sphinx/source/plugins/python/pil-conversions.py
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Aug 2023 14:30:40 +0200
parents 92ca063536ed
children 1316bc62b5d5
line wrap: on
line diff
--- a/Sphinx/source/plugins/python/pil-conversions.py	Wed Aug 30 14:25:45 2023 +0200
+++ b/Sphinx/source/plugins/python/pil-conversions.py	Wed Aug 30 14:30:40 2023 +0200
@@ -36,7 +36,7 @@
         # (4) Convert back the modified PIL image to an Orthanc image
         buf = image.tobytes()
         a = orthanc.CreateImageFromBuffer(frame.GetImagePixelFormat(), image.size[0], image.size[1],
-                                          len(buf) / image.size[1], buf)
+                                          len(buf) // image.size[1], buf)
 
         # (5) Create and upload a new DICOM instance with the modified frame
         tags = {