From e4a62beb23dee7680efe697a1203e93278bfa7d1 Mon Sep 17 00:00:00 2001 From: Christian Mahnke Date: Sun, 18 Aug 2024 15:12:05 +0200 Subject: [PATCH] Minor fixes --- scripts/manipulator_uhdr_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/manipulator_uhdr_app.py b/scripts/manipulator_uhdr_app.py index 7f152c2feb..45636c133f 100644 --- a/scripts/manipulator_uhdr_app.py +++ b/scripts/manipulator_uhdr_app.py @@ -1,6 +1,7 @@ import os import sys import tempfile +import logging from iiif.manipulator import IIIFManipulator @@ -58,7 +59,7 @@ def do_first(self): w, h = self.image.size if (w % 2 or h % 2): - new_w, new_h = iself.image.size + new_w, new_h = self.image.size new_w -= w % 2 new_h -= h % 2 logging.info(f"Resizing image, from {w}x{h} to {new_w}x{new_h}")