Revert "judge image size for using diff interpolation"

This reverts commit 87526942a6.
This commit is contained in:
sdbds
2024-07-20 21:35:24 +08:00
parent 87526942a6
commit 1f16b80e88

View File

@@ -2362,7 +2362,7 @@ def trim_and_resize_if_required(
if image_width != resized_size[0] or image_height != resized_size[1]: if image_width != resized_size[0] or image_height != resized_size[1]:
# リサイズする # リサイズする
image = cv2.resize(image, resized_size, interpolation=cv2.INTER_AREA if image_width > resized_size[0] and image_height > resized_size[1] else cv2.INTER_LANCZOS4) image = cv2.resize(image, resized_size, interpolation=cv2.INTER_AREA) # INTER_AREAでやりたいのでcv2でリサイズ
image_height, image_width = image.shape[0:2] image_height, image_width = image.shape[0:2]