Skip to content

Commit

Permalink
Save thumbnails as JPEG
Browse files Browse the repository at this point in the history
PNGs don't show up in-game.
  • Loading branch information
birdstakes committed Aug 22, 2023
1 parent 6bb2667 commit 3c70890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/CompilerPane.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 3c70890

Please sign in to comment.