Pillow 需要给 python 另外安装

第一个用法:https://www.cnblogs.com/ibingshan/p/11057390.html

ico to png:

from PIL import Image
import os

icoPath = "d:/test/test.ico"
img = Image.open(icoPath)
pngPath = os.path.join(os.path.dirname(icoPath), 'test.png')
img.save(pngPath, 'png')

 

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-08-22
  • 2021-05-30
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-07-25
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案