python Pillow picture processing module, there is no good strong

python Pillow picture processing module, there is no good strong

Pillow need to install additional python

The first usage: 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')

 

Guess you like

Origin www.cnblogs.com/ibingshan/p/11059010.html