psd-tools is a Python package for working with Adobe Photoshop PSD files as described in specification.
译文:psd-tools 是一个Python包,用于使用规范中描述的Adobe Photoshop PSD文件。
文档
安装
pip install psd-tools
示例
from psd_tools import PSDImage
psd = PSDImage.open('example.psd')
psd.composite().save('example.png')
for layer in psd:
print(layer)
image = layer.composite()