From 9bfe3f45da82d9a5624a44402abeb753265c09a8 Mon Sep 17 00:00:00 2001 From: AbyssYuan0 Date: Fri, 19 Jan 2024 14:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=8B=93=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 8110440..b8a58db 100644 --- a/__init__.py +++ b/__init__.py @@ -976,7 +976,7 @@ class ExpandImageWithColor: def expand_image_with_color(self, image, top, bottom, left, right, color=None): img = tensorToImg(image) - + img = img.convert("RGBA") # Determine the new size of the image new_width = img.width + left + right new_height = img.height + top + bottom