mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-11 03:18:29 +08:00
update threshold for image merge
This commit is contained in:
@@ -42,7 +42,7 @@ class Post:
|
||||
return Image.open(pic_buffer)
|
||||
|
||||
def _check_image_square(self, size: tuple[int, int]) -> bool:
|
||||
return abs(size[0] - size[1]) / size[0] < 0.01
|
||||
return abs(size[0] - size[1]) / size[0] < 0.05
|
||||
|
||||
async def _pic_merge(self) -> None:
|
||||
if len(self.pics) < 3:
|
||||
|
||||
Reference in New Issue
Block a user