update threshold for image merge

This commit is contained in:
felinae98
2021-12-24 14:20:05 +08:00
parent 4468de6f7a
commit 3f906f7a41
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -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: