Skip to content

Commit 014c652

Browse files
committed
Make high res ICO utility
1 parent 475932d commit 014c652

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

utilities/__init__.py

Whitespace-only changes.

utilities/make_ico.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from PIL import Image # Pillow library is required
2+
3+
# Open the existing PNG image
4+
image = Image.open('icon.png') # Replace with your image path
5+
6+
# Resize the image to 32x32
7+
icon = image.resize((128, 128), Image.ADAPTIVE)
8+
9+
# Save the image as an ICO file
10+
icon.save('app_.ico', format='ICO')
11+
12+
print("ICO file created successfully!")

0 commit comments

Comments
 (0)