meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation

Home Page:http://camanjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EdgeEnhance and EdgeDetect just turn the image black

techslides opened this issue · comments

Has anyone had any luck with these two filters:

Caman.Filter.register("edgeEnhance", function() {
return this.processKernel("Edge Enhance", [0, 0, 0, -1, 1, 0, 0, 0, 0]);
});

Caman.Filter.register("edgeDetect", function() {
return this.processKernel("Edge Detect", [-1, -1, -1, -1, 8, -1, -1, -1, -1]);
});

They just turn any image I try completely black. On the other hand, emboss and all other filters work fine.

Confirmed. These two are useless.