From 6a0bf916ade93e0ddbba1ffd48784b60b1f813f4 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 27 May 2021 20:49:09 +0200 Subject: [PATCH] fixed odd numbers --- openpype/plugins/publish/extract_review.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/openpype/plugins/publish/extract_review.py b/openpype/plugins/publish/extract_review.py index 595e09178d..71442df872 100644 --- a/openpype/plugins/publish/extract_review.py +++ b/openpype/plugins/publish/extract_review.py @@ -1605,9 +1605,16 @@ class OverscanCrop: output = [] if self.input_width == width and self.input_height == height: - pass + return output - elif width <= self.input_width and height <= self.input_height: + # Make sure resolution has odd numbers + if width % 2 == 1: + width -= 1 + + if height % 2 == 1: + height -= 1 + + if width <= self.input_width and height <= self.input_height: output.append("crop={}:{}".format(width, height)) elif width >= self.input_width and height >= self.input_height: