From e2d0d3140b5f24a5ce3ebf4a661a6cf171985176 Mon Sep 17 00:00:00 2001 From: The Random DIY Date: Sun, 17 Aug 2025 12:08:51 +0300 Subject: [PATCH] Skipping resize if the image already correct size --- inkycal/modules/inky_image.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/inkycal/modules/inky_image.py b/inkycal/modules/inky_image.py index 7d0bd57..2bd575f 100755 --- a/inkycal/modules/inky_image.py +++ b/inkycal/modules/inky_image.py @@ -152,6 +152,13 @@ class Inkyimage: logger.error("no height of width specified") return + current_width, current_height = self.image.size + + # Skip if dimensions are the same + if width == current_width and height == current_height: + logger.info(f"Image already correct size ({width}x{height}), skipping resize") + return + image = self.image if width: