PSD.rb

The Photoshop file format is no longer opaque. Adobe's PSD format has been a black box for ages. We've built a Ruby library that opens up the PSD format and allows you to easily work with Photoshop documents.

Get it

Download .zip Download .tar.gz View on GitHub

About

PSD.rb is a general purpose Photoshop file parser written in pure Ruby. It allows you to work with a Photoshop document in a manageable tree structure and find out important data such as:

PSD.rb is tested against:

PSD Native

PSD Native is a native extension to PSD.rb that includes speed enhancements finely tuned for production environments. PSD Native introduces no new features to PSD.rb, only speed improvements. For most larger files, you will see speed increases of 50x or more using PSD Native.

If you are interested in licensing PSD Native for a monthly fee, please get in touch.

Installation

Just add it to your project's Gemfile.

gem 'psd'

Or install it.

gem install psd

Usage

There's no shortage of things you can do with PSD.rb. Please see the GitHub page for full documentation and code examples.

Contributing

Please see the project's GitHub page for details contributing

License

Copyright 2013 LayerVault Inc.

Licensed under the MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.