Awesome Open Source
Awesome Open Source

psd-tools

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

|pypi| |test| |docs|

.. _specification: https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ .. _psd-tools: https://github.com/psd-tools/psd-tools

.. |pypi| image:: https://img.shields.io/pypi/v/psd-tools.svg :target: https://pypi.python.org/pypi/psd-tools :alt: PyPI Version

.. |test| image:: https://github.com/psd-tools/psd-tools/workflows/Test/badge.svg :alt: Test

.. |docs| image:: https://readthedocs.org/projects/psd-tools/badge/ :alt: Document Status :target: http://psd-tools.readthedocs.io/en/latest/

.. _psd-tools: https://github.com/psd-tools/psd-tools

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

.. code-block:: python

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.

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

Contributing

See contributing_ page.

.. _contributing: https://github.com/psd-tools/psd-tools/blob/master/docs/contributing.rst


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (44,740
photoshop (35
psd (14

Find Open Source By Browsing 7,000 Topics Across 59 Categories