# HG changeset patch # User Sebastien Jodogne # Date 1693398640 -7200 # Node ID caf69d2ee0709b2178e9346d4518035f8db2be4f # Parent 600da1bb6acd02a44dea4f64f2122a6687fb44d8 fix Sphinx/source/plugins/python/pil-conversions.py diff -r 600da1bb6acd -r caf69d2ee070 Sphinx/source/plugins/python/pil-conversions.py --- 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 = {