python制作ico图标

时间:2024-02-17 21:27:40
import PythonMagick

img = PythonMagick.Image(\'image.png\')
img.sample(\'64x64\')
img.write(\'image_64x64.ico\')

img.sample(\'128x128\')
img.write(\'image_128x128.ico\')
#ps: download PythonMagick (Unofficial Windows Binaries for Python Extension Packages) 
或百度网盘 链接: https://pan.baidu.com/s/1E5qfG7PnRnHwp9h5orhsEg 提取码: 94gm
#ps: install PythonMagick (e.g. pip install C:\Users\Administrator\Desktop\PythonMagick-0.9.19-cp38-cp38-win_amd64.whl)

#ps: 图标下载地址easyicon