Skip to main content

pytoshop

https://img.shields.io/pypi/v/pytoshop.svg https://img.shields.io/travis/mdboom/pytoshop.svg Documentation Status Coverage status

A Python-based library to read and write Photoshop PSD and PSB files.

Based on the specification from Adobe, but also with the help of the psd-tools source code.

Features

  • Parsing of the most important tags. This is not complete, but the infrastructure is in place to add support for more quite easily.

  • Loading of complex nested layer structures, and the ability to edit them and write them back out.

History

Improvements:

  • For speed purposes, pytoshop no longer uses traitlets.

  • Performance improvements to the compression/decompression code.

  • Added support for the shmd metadata tagged block, and the ability to access it from the user.nested_layers API.

Bugfixes:

  • Updated the list of tagged blocks that use 8-bit lengths.

  • Fixed a bug where the image data would be corrupted when writing images from an input file to an output file with a different file format version.

  • Fixed a crash when the input file contains no layer group ids.

  • Allow Numpy arrays of shape () in place of scalars for constant images.

0.3.0

Improvements:

  • pytoshop now runs on Python 2.7, in addition to 3.4 and 3.5.

  • Many of the image resources types are now handled directly, rather than through a generic bytes-only interface.

  • Major speedups in compression codecs.

Bugfixes:

  • Saving a layer with a constant color (in nested_layers_to_psd) now works correctly.

  • Unicode string decoding now properly handles trailing zeroes.

  • The “name source” on layers (when created from nested_layers_to_psd) would point to the wrong source, but is now fixed.

  • Fix a bug when writing a layer of width 1.

Metadata

Release files for pytoshop 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytoshop 0.4.0
File Size Uploaded
pytoshop-0.4.0.tar.gz 1.1 MB Details

Release files / pytoshop-0.4.0.tar.gz

Download URL pytoshop-0.4.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4f83494b4c7b2150c23b6179efd97e49818ad98275174d776d3dcf55eda68cf0
BLAKE2b-256 checksum
How to use checksums
457db6c61ec9cdafd333acbb14064f2e141ade0c3b8b10194169ab8a75e359d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.6.0

1 release file

0.4.1

1 release file

This release

0.4.0 This release

1 release file

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page