mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 12:36:35 +00:00
Double image size to improve pixel clarity on resize
This commit is contained in:
parent
af0841db26
commit
0a1003291a
1 changed files with 5 additions and 0 deletions
|
|
@ -222,6 +222,11 @@ def main(dry):
|
|||
|
||||
# set bottom-right pixel to 254 alpha
|
||||
pixels[w - 1, h - 1] = pixels[w - 1, h - 1][:3] + (243,)
|
||||
|
||||
# Resize to 2x so that pixels remain a bit more crisp when resized
|
||||
w, h = (2 * w, 2 * h)
|
||||
img = img.resize((w, h), 0)
|
||||
|
||||
img.save(screenshot_path)
|
||||
|
||||
options = {"skinUrl": skin_url}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue