meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

EdgeEnhance and EdgeDetect just turn the image black #142

Open techslides opened 10 years ago

techslides commented 10 years ago

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.

av01d commented 5 years ago

Confirmed. These two are useless.