Commit 0843d242 by baiquan

refactor(upload): 注释掉日志输出语句

- 在 upload_image_and_video.py 文件中,注释掉了多处 logger.info()调用
- 这些日志输出语句可能会影响性能或不必要的日志记录,暂时禁用它们
parent 7b974690
......@@ -38,7 +38,7 @@ def convert_rect_to_square(image_path):
output_path = os.path.join(os.path.dirname(image_path), f"square_{os.path.basename(image_path)}")
# 保存结果
square_image.save(output_path, "PNG")
logger.info(f"{output_path} --> 图片转换完成")
# logger.info(f"{output_path} --> 图片转换完成")
return output_path
return image_path
......@@ -72,7 +72,7 @@ def process_image_width_height(image_path):
output_path = os.path.join(os.path.dirname(image_path), f"width_height_{os.path.basename(image_path)}")
# 保存结果
background.save(output_path, "PNG")
logger.info(f"{output_path} --> 图片宽高转换完成")
# logger.info(f"{output_path} --> 图片宽高转换完成")
return output_path
......@@ -88,7 +88,7 @@ def check_image_width_height(image_path, image_type: int = 1):
width, height = original.size
if image_type == 1:
if width < 600 or height < 600:
logger.info(f"{image_path} --> 图片尺寸小于600*600")
# logger.info(f"{image_path} --> 图片尺寸小于600*600")
return process_image_width_height(image_path)
elif image_type == 2:
if width > 5000 or height > 20000:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment