Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "picha", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "image format codec and simple image processing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -75,2 +75,16 @@ | ||
testFile("test2cmyk.jpg", 76, 50, 'rgb'); | ||
describe("encodes images with alpha", function() { | ||
var img; | ||
it("should load test.png", function() { | ||
img = picha.decodeSync(fs.readFileSync(path.join(__dirname, "test.png"))); | ||
assert(img.pixel === "rgba"); | ||
}) | ||
it("should jpeg encode rgba", function() { | ||
var jpeg = picha.encodeJpegSync(img, { quality: 100 }); | ||
}) | ||
it("should jpeg encode greya", function() { | ||
var jpeg = picha.encodeJpegSync(picha.colorConvertSync(img, { pixel: 'greya' }), { quality: 100 }); | ||
}) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
715098
663