refer to code:
.
# pip install pillow
from PIL import Image
def convert_to_ico(input_image_path, output_ico_path, size=(32, 32)):
image = Image.open(input_image_path)
image = image.resize(size, Image.ANTIALIAS)
image.save(output_ico_path, 'ICO')
input_image_path = "path/to/your/input_image.png"
output_ico_path = "path/to/your/output_icon.ico"
convert_to_ico(input_image_path, output_ico_path)
..
Thank you.
๐๐ป♂️
No comments:
Post a Comment