修复midjourney图片分割逻辑漏洞
This commit is contained in:
parent
82088279eb
commit
f7363c8ba8
@ -260,7 +260,7 @@ class MidjourneyService:
|
|||||||
if not original_format:
|
if not original_format:
|
||||||
original_format = 'PNG'
|
original_format = 'PNG'
|
||||||
|
|
||||||
if width < 1500 or height < 1500:
|
if width < 500 or height < 500:
|
||||||
logger.error(f"图像尺寸不符合预期: {width}x{height}, 应该接近2048x2048")
|
logger.error(f"图像尺寸不符合预期: {width}x{height}, 应该接近2048x2048")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user