From 3c70890d66a41aec43e7a10881d0a06b089cce0c Mon Sep 17 00:00:00 2001 From: Josh Steffen Date: Tue, 22 Aug 2023 16:25:58 -0400 Subject: [PATCH] Save thumbnails as JPEG PNGs don't show up in-game. --- src/app/CompilerPane.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/CompilerPane.py b/src/app/CompilerPane.py index 1368433ae..fa24fd2cb 100644 --- a/src/app/CompilerPane.py +++ b/src/app/CompilerPane.py @@ -270,7 +270,7 @@ def find_screenshot(e=None) -> None: if file_name: image = Image.open(file_name).convert('RGB') # Remove alpha channel if present. buf = io.BytesIO() - image.save(buf, 'png') + image.save(buf, format='jpeg', quality=95, subsampling=0) with AtomicWriter(SCREENSHOT_LOC, is_bytes=True) as f: f.write(buf.getvalue())