Use JPEG quality 80
All checks were successful
Build and Publish / build_and_publish (push) Successful in 4m37s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 4m37s
This commit is contained in:
parent
9a44a39933
commit
7e3ef30126
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ class FFMeta(commands.Cog):
|
||||||
return await ctx.respond("That's not an image!")
|
return await ctx.respond("That's not an image!")
|
||||||
with tempfile.NamedTemporaryFile(suffix=Path(image.filename).suffix) as temp:
|
with tempfile.NamedTemporaryFile(suffix=Path(image.filename).suffix) as temp:
|
||||||
img_tmp = io.BytesIO(await image.read())
|
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.write(dst.getvalue())
|
||||||
temp.flush()
|
temp.flush()
|
||||||
process = await asyncio.create_subprocess_exec(
|
process = await asyncio.create_subprocess_exec(
|
||||||
|
|
Loading…
Reference in a new issue