Skip to content

Commit

Permalink
Merge pull request #1975 from birdstakes/jpeg-thumbnail
Browse files Browse the repository at this point in the history
Save thumbnails as JPEG
  • Loading branch information
TeamSpen210 authored Aug 22, 2023
2 parents 6ed4b86 + 3c70890 commit 2f7b5f3
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 2f7b5f3

Please sign in to comment.