changeset 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 600da1bb6acd
children e7a3b3d76f1c
files Sphinx/source/plugins/python/pil-conversions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 = {