Browse Source

out_image_2

rambo 1 month ago
parent
commit
71fa0ea6c4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      python/service/grenerate_main_image_test.py

+ 2 - 0
python/service/grenerate_main_image_test.py

@@ -745,6 +745,8 @@ class GeneratePic(object):
                 cut_image.close()
             if 'logo_im' in locals() and logo_im:
                 logo_im.close()
+            if 'out_image_2' in locals() and out_image_2:
+                out_image_2.close()
         except Exception as e:
             logger.info(f"阴影处理关闭图片对象失败:{str(e)}")
             print(f"Error closing images: {e}")