Commit 064e5b9e authored by Ryan LeFevre's avatar Ryan LeFevre

Update package.json and version

parent 776b9103
...@@ -6,14 +6,11 @@ module.exports = ...@@ -6,14 +6,11 @@ module.exports =
toPng: -> toPng: ->
new RSVP.Promise (resolve, reject) => new RSVP.Promise (resolve, reject) =>
png = new Png(new Buffer(@pixelData), @width(), @height(), 'rgba') png = new Png(new Buffer(@pixelData), @width(), @height(), 'rgba')
console.log "Encoding!"
png.encode(resolve) png.encode(resolve)
saveAsPng: (output) -> saveAsPng: (output) ->
new RSVP.Promise (resolve, reject) => new RSVP.Promise (resolve, reject) =>
@toPng() @toPng()
.then (image) -> .then (image) ->
console.log "Writing!"
fs.writeFile output, image.toString('binary'), 'binary', resolve fs.writeFile output, image.toString('binary'), 'binary', resolve
{ {
"name": "psd", "name": "psd",
"version": "0.0.1", "version": "1.0.0",
"main": "./index.js", "main": "./index.js",
"keywords": ["psd", "parser", "photoshop", "adobe", "reader"],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@github.com:meltingice/psd.js.git" "url": "git@github.com:meltingice/psd.js.git"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment