Git hook to automagically render .PSD files to images, allowing you to visually diff changes.
psdiff uses git hooks and the lovely psd.rb library to automagically generate up-to-date image files from PSDs in the repository, allowing you to easily preview them and make use of github's image diff tools.
[email protected] ~/dev/myproject > $ git status
[email protected] ~/dev/myproject > $ git commit -m "Add mock.psd"
psdiff: created mock.psd.png #
Update: Github now supports PSD viewing!
Check it: Github Blog - PSD Viewing & Diffing
This tool will remain available as it still possibly has its uses outside Github.
How do I install this?
Glad you asked! Couldn't be easier. Just run this in the root of a git repo:bash
Here's what that script does:
- Scolds you if you don't have Ruby installed (it's required!)
- Checks if thepsdgem is installed and allows you to install it if needed.
- Downloads thepre-commithook from this repo to your.git/hooks.
Congrats! Any changes you make to psd files in the repository will now trigger psdiff!
It's not really a good idea to keep large PSD files in your repositories - this project is partially a proof-of-concept, and partially a helper for existing projects.
If you're a designer looking for a version control solution, check out LayerVault