Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Python package for reading Adobe Photoshop PSD files

License

NotificationsYou must be signed in to change notification settings

psd-tools/psd-tools

Repository files navigation

psd-tools is a Python package for working with Adobe Photoshop PSD filesas described inspecification.

PyPI VersionBuildDocument Status

Features

Supported:

  • Read and write of the low-level PSD/PSB file structure
  • Raw layer image export in NumPy and PIL format

Limited support:

  • Composition of basic pixel-based layers
  • Composition of fill layer effects
  • Vector masks
  • Editing of some layer attributes such as layer name
  • Basic editing of pixel layers and groups, such as adding or removing a layer
  • Blending modes except for dissolve
  • Drawing of bezier curves

Not supported:

  • Editing of various layers such as type layers, shape layers, smart objects, etc.
  • Composition of adjustment layers
  • Composition of many layer effects
  • Font rendering

Installation

Usepip to install the package:

pip install psd-tools

Getting started

frompsd_toolsimportPSDImagepsd=PSDImage.open('example.psd')psd.composite().save('example.png')forlayerinpsd:print(layer)layer_image=layer.composite()layer_image.save('%s.png'%layer.name)

Check out thedocumentation for features and details.

Contributing

Seecontributing page.

Note

PSDspecification is far from complete. If you cannot find a desiredinformation in thedocumentation, you should inspect the low-leveldata structure.


[8]ページ先頭

©2009-2025 Movatter.jp