Disable optim. when recompressing clipboard PNG
Far too slow for big (10MB+) PNG
This commit is contained in:
parent
1c218c82ec
commit
286b7a951a
1
TODO.md
1
TODO.md
@ -2,6 +2,7 @@
|
||||
|
||||
- Image viewer:
|
||||
- hflickable: support kinetic scrolling disabler
|
||||
- settings
|
||||
|
||||
- compress png in a thread
|
||||
- verify upload cancellation
|
||||
|
@ -598,7 +598,7 @@ class MatrixClient(nio.AsyncClient):
|
||||
|
||||
async def get_path() -> Path:
|
||||
with io.BytesIO(image) as inp, io.BytesIO() as buffer:
|
||||
PILImage.open(inp).save(buffer, "PNG", optimize=True)
|
||||
PILImage.open(inp).save(buffer, "PNG")
|
||||
|
||||
async with aiofiles.open(temp.name, "wb") as file:
|
||||
await file.write(buffer.getvalue())
|
||||
|
Loading…
Reference in New Issue
Block a user