GithubHelp home page GithubHelp logo

alexlaforge / psdiff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from filp/psdiff

0.0 2.0 0.0 8.34 MB

Git hook to automagically render .PSD files to images, allowing you to visually diff changes.

Home Page: http://filp.github.io/psdiff

Ruby 56.33% Shell 43.67%

psdiff's Introduction

psdiff

http://filp.github.io/psdiff

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.

[Diff Example Check out an example diff ](https://github.com/filp/psdiff/commit/44b6b0466fe707396cfd6c771e5d744025e66196?diff-0=1-42)

filp@filp-x ~/dev/myproject
> $ git status

## master
A  mock.psd

filp@filp-x ~/dev/myproject
> $ git commit -m "Add mock.psd"

psdiff: created mock.psd.png # <----------
[master 1156ea5] Add mock.psd
 2 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 1.psd
 create mode 100644 1.psd.png

That's it!

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 <(curl -sSL https://raw.github.com/filp/psdiff/master/install.sh)

Here's what that script does:

  1. Scolds you if you don't have Ruby installed (it's required!)
  2. Checks if the psd gem is installed and allows you to install it if needed.
  3. Downloads the pre-commit hook from this repo to your .git/hooks.

Congrats! Any changes you make to psd files in the repository will now trigger psdiff!

Warning

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

Author

This tiny library was developed by Filipe Dobreira and Gabriele Cirulli

psdiff's People

Contributors

filp avatar gabrielecirulli avatar rigel-eva avatar

Watchers

James Cloos avatar Alex Laforge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.