blob: 793ae440513e9a2b17154fefbfaece7d7b074998 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
fs = require 'fs'
{PSD} = require __dirname + '/../lib/psd.js'
if process.argv.length is 2
console.log "Please specify an input file"
process.exit()
psd = PSD.fromFile process.argv[2]
start = (new Date()).getTime()
psd.toFile __dirname + '/output.png', ->
end = (new Date()).getTime()
console.log "PSD flattened to output.png in #{end - start}ms"
|