Corrected brightness default view (#509)

This commit is contained in:
Oorjit Chowdhary
2018-11-30 23:20:20 +05:30
committed by Jeffrey Warren
parent f152a78e70
commit 108e87996a

View File

@@ -20,12 +20,14 @@ module.exports = function Brightness(options,UI){
var step = this;
function changePixel(r, g, b, a){
options.brightness =
options.brightness || 100
var val = (options.brightness)/100.0
r = val*r<255?val*r:255
g = val*g<255?val*g:255
b = val*b<255?val*b:255
return [r , g, b, a]
return [r, g, b, a]
}
function output(image,datauri,mimetype){