2025年3月30日 星期日 甲辰(龙)年 月廿九 设为首页 加入收藏
rss
您当前的位置:首页 > 计算机 > 编程开发 > Python

Python:psd-tools解析PSD文件

时间:05-29来源:作者:点击数:38

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()
方便获取更多学习、工作、生活信息请关注本站微信公众号城东书院 微信服务号城东书院 微信订阅号
推荐内容
相关内容
栏目更新
栏目热门