Constant change due to #29
This commit is contained in:
parent
a0616ff285
commit
894840ef95
@ -152,7 +152,7 @@ async def send_content(app: PyroClient, http_session: ClientSession) -> None:
|
||||
) and func[0] is photo_random:
|
||||
image = Image.open(path.join(app.config["locations"]["tmp"], tmp_path))
|
||||
width, height = image.size
|
||||
image = image.resize((int(width / 2), int(height / 2)), Image.ANTIALIAS)
|
||||
image = image.resize((int(width / 2), int(height / 2)), Image.LANCZOS)
|
||||
if tmp_path.lower().endswith(".jpeg") or tmp_path.lower().endswith(".jpg"):
|
||||
image.save(
|
||||
path.join(app.config["locations"]["tmp"], tmp_path),
|
||||
|
Reference in New Issue
Block a user