For asynchronous file saving, I can use aiofiles library.
To use aiofiles library I'd have to do something like that:
async with aiofiles.open(path, "wb") as file:
await file.write(data)
How can I asynchronously save the PIL images? Even if I use Image.tobytes function to save it with file.write(data), the saved image isn't correct.
So how can I asynchronously save a PIL image?