Merge pull request #400 from vitasam/main

Skipping resize if the image already correct size
This commit is contained in:
Ace
2025-08-17 12:57:44 +02:00
committed by GitHub

View File

@@ -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: