Mercurial > hg > orthanc-book
changeset 1184:3bae50354314
fix sample python plugin with PIL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 Aug 2025 17:10:22 +0200 |
parents | 72a35cce8f76 |
children | 3674d3a5b085 |
files | Sphinx/source/plugins/python/pil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Sphinx/source/plugins/python/pil.py Mon Aug 11 19:35:24 2025 +0200 +++ b/Sphinx/source/plugins/python/pil.py Tue Aug 12 17:10:22 2025 +0200 @@ -12,7 +12,7 @@ image = Image.open(io.BytesIO(png)) # Downsize the image as a 64x64 thumbnail - image.thumbnail((64, 64), Image.ANTIALIAS) + image.thumbnail((64, 64), Image.Resampling.LANCZOS) # Save the thumbnail as JPEG, then send the buffer to the caller jpeg = io.BytesIO()