Use JPEG quality 80
All checks were successful
Build and Publish / build_and_publish (push) Successful in 4m37s

This commit is contained in:
Nexus 2024-06-17 14:52:22 +01:00
parent 9a44a39933
commit 7e3ef30126
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -248,7 +248,7 @@ class FFMeta(commands.Cog):
return await ctx.respond("That's not an image!")
with tempfile.NamedTemporaryFile(suffix=Path(image.filename).suffix) as temp:
img_tmp = io.BytesIO(await image.read())
dst: io.BytesIO = await asyncio.to_thread(self.jpegify_image, img_tmp, 50, "jpeg")
dst: io.BytesIO = await asyncio.to_thread(self.jpegify_image, img_tmp, 90, "webp")
temp.write(dst.getvalue())
temp.flush()
process = await asyncio.create_subprocess_exec(