• Stars
    star
    413
  • Rank 104,801 (Top 3 %)
  • Language
    Ruby
  • Created almost 11 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

whoops

PHP errors for cool kids
PHP
13,093
star
2

react-native-es6-reflux

Boilerplate for iOS app development with React Native, ES6 and Reflux
Objective-C
141
star
3

write-good-git

Write more good git commit messages
JavaScript
81
star
4

nod

Notifications in PHP (notify-send, growl, etc) like that.
PHP
52
star
5

oversmash

Overwatch API library for player details and career stats
TypeScript
45
star
6

why

webkit in the cloud
JavaScript
31
star
7

Markdown

A cleaned-up and improved version of Michel Fortin's Markdown_Parser
PHP
18
star
8

homeassistant-ws

Minimalist client library for Homeassistant's Websocket API
TypeScript
12
star
9

beacon-ui

A pretty sweet UI theme for the Atom editor
CSS
11
star
10

next-better-api

Opinionated TypeScript-first helpers for better NextJS APIs
TypeScript
10
star
11

dirp

php5 directory indexing interface and framework
PHP
10
star
12

oversmash-api

GraphQL API for Overwatch player information and stats
JavaScript
7
star
13

wayne

Laravel4 Debug Toolbar
PHP
6
star
14

Spy

Spy is a simple, flexible and easy to extend dependency injection container.
PHP
5
star
15

survhey

Surveys in 30 seconds
Ruby
4
star
16

ts-es6-boilerplate

Minimalistic boilerplate for TypeScript projects targeting ES6 (with Babel).
JavaScript
4
star
17

silex-chisel

An opinionated silex project accelerator
PHP
3
star
18

miniscurl

Miniscurl - URL shortener/expander for Google Chromeβ„’.
JavaScript
3
star
19

comfy

Configure your applications comfortably
JavaScript
3
star
20

roast

lightweight php5.3 api framework
PHP
2
star
21

turnip

A small php-5.3 framework cleverly disguised as a turnip.
PHP
2
star
22

inventory

An inventory system for the rest of us
TypeScript
2
star
23

gimme

Inject your services with *magic*
PHP
2
star
24

aws-eb-config-switcher

Manage multiple elasticbeanstalk configurations for the same project
Shell
1
star
25

oversmash.com

Overwatch Workshop repository
Ruby
1
star
26

e2u

E2 Userland Library
1
star
27

place

Custom-tailored home automation platform
JavaScript
1
star
28

slash-blade

A simple routing library for the slash language.
1
star
29

tooty

Simple agnostic message router for node.
JavaScript
1
star
30

whatdo

Ruby
1
star
31

Justin.tv-Notifier

JavaScript
1
star
32

didya

Suggestions for misspelled symbols in PHP (functions, variables, ...) injected directly in the Exception
PHP
1
star
33

thebigdb-php

TheBigDB PHP bindings.
PHP
1
star
34

jotform

Ruby wrapper for the JotForm API
Ruby
1
star
35

stormworks-screen-api

Canvas-based JS/Typescript implementation of the Stormworks LUA screen API.
TypeScript
1
star