Skip to content

Instantly share code, notes, and snippets.

@alagu
Created February 14, 2014 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alagu/9004692 to your computer and use it in GitHub Desktop.
Save alagu/9004692 to your computer and use it in GitHub Desktop.
fs = require 'fs'
path = require 'path'
PSD = require './psd.js/src/psd'
Parser = require './psd.js/src/parser'
psd = PSD.fromFile process.argv[2]
psd.parse()
for layer in psd["layerMask"]["layers"]
if layer["adjustments"].hasOwnProperty "solid_fill"
console.log Parser.parseColor(layer["adjustments"]["solid_fill"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment