Commit 8458d991 authored by Ryan LeFevre's avatar Ryan LeFevre

Test fixes

parent f5a5bd8c
......@@ -7,13 +7,14 @@ module.exports =
new RSVP.Promise (resolve, reject) =>
png = new PNG(filterType: 4, width: @width(), height: @height())
png.data[i] = p for p, i in @pixelData
png.data = @pixelData
resolve(png)
saveAsPng: (output) ->
new RSVP.Promise (resolve, reject) =>
@toPng()
.then (image) ->
image.pack().pipe(fs.createWriteStream(output))
resolve()
@toPng().then (image) ->
image
.pack()
.on('end', resolve)
.pipe(fs.createWriteStream(output))
test/fixtures/out.png

12.5 KB | W: | H:

test/fixtures/out.png

16.7 KB | W: | H:

test/fixtures/out.png
test/fixtures/out.png
test/fixtures/out.png
test/fixtures/out.png
  • 2-up
  • Swipe
  • Onion skin
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