minghigh / psd-tools

Python package for reading Adobe Photoshop PSD files

Home Page:https://psd-tools.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psd-tools

psd-tools is a Python package for working with Adobe Photoshop PSD files as described in specification.

PyPI Version Test Document Status

Installation

Use pip to install the package:

pip install psd-tools

Note

In order to extract images from 32bit PSD files PIL/Pillow must be built with LITTLECMS or LITTLECMS2 support.

Getting started

from psd_tools import PSDImage

psd = PSDImage.open('example.psd')
psd.composite().save('example.png')

for layer in psd:
    print(layer)
    layer_image = layer.composite()
    layer_image.save('%s.png' % layer.name)

Check out the documentation for features and details.

Contributing

See contributing page.

About

Python package for reading Adobe Photoshop PSD files

https://psd-tools.readthedocs.io/

License:MIT License


Languages

Language:Python 100.0%