psd
A Rust API for parsing and working with PSD files.
Live Demo
In the live demo you can visualize a PSD in the browser, toggle layers on and off and drag and drop a new PSD into the demo.
The Psd Book
The WIP The Psd Book will contain information about getting started with the psd
crate,
a description of the architecture and information on how to get started.
API Docs
Check out the API documentation to see everything that you can currently access.
Background / Initial Motivation
I'm working on a game and part of my asset compilation process was a script that did the following:
-
Iterate over all PSD files
-
Export every PSD into a PNG, ignoring any layers that begin with an
_
-
Combine PNGs into a texture atlas
For a couple of years I was using imagemagick
to power step 2, but after getting a new laptop and upgrading imagemagick
versions it stopped working.
After a bit of Googling I couldn't land on a solution for my problem so I decided to make this crate.
My approach was to support as much of the PSD spec as I needed, so there might be bits of information that you'd like to make use of that aren't currently supported.
That said, if there's anything missing that you need please feel very free to open an issue!
Usage
use ;
See Also
- PSD specification - the basis of our API
License
MIT