document.write("");

python png 转 icon文件

 

pip install pillow

  

from PIL import Image

def png_to_ico(png_path, ico_path):
    img = Image.open(png_path)
    img.save(ico_path, format='ICO')

png_to_ico('Vscode_A.png', 'Vscode_A.ico')

  

posted @ 2024-06-12 11:26  人间春风意  阅读(16)  评论(0编辑  收藏  举报