分享一个python
库,用于读取psd
图层等信息的
官方文档:https://psd-tools.readthedocs.io/en/latest/
使用方式:
pip install -i http://mirrors.aliyun.com/pypi/simple/ psd-tools --trusted-host mirrors.aliyun.com
我们将psd
导出为png
from psd_tools import PSDImage
psd = PSDImage.open('example.psd')
psd.composite().save('example.png')
更多用法可以看: