You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has the parameter value definition changed from Jimp 0.x to 1.x?
Expected Behavior
Brightness with a value of 0 should not affect image like it did in v0.x
Brightness with a value of 1 should fully lighten an image like it did in v0.x
Brightness with a value of -1 should fully darken an image like it did in v0.x
Brightness with a value of -0.5 should half darken an image like it did in v0.x
Brightness with a value of 0.5 should half lighten an image like it did in v0.x
Using Jimp V0.x (using Node-RED to simplify testing)
Current Behavior
Brightness with a value of 0 in v1.6 behaves differently - it darkens the image
Brightness with a value of 1 in v1.6 behaves differently - it has little affect on the image
Brightness with a value of -1 correctly fully darkens an image like it did in v0.x
Brightness with a value of -0.5 in v1.6 behaves differently - it FULLY darkens the image
Brightness with a value of 0.5 in v1.6 behaves differently - it half darkens the image
Failure Information (for bugs)
Steps to Reproduce
Demonstrating -0.5 brightness
load image
invert
apply brightness -0.5
Demonstrating -0.0 brightness
load image
invert
apply brightness -0.0
Demonstrating 1.0 brightness
load image
invert
apply brightness 1.0
Context
Jimp Version: 1.6.0
Operating System: Win 11
Node version: 18
Failure Logs
The text was updated successfully, but these errors were encountered:
Has the parameter value definition changed from Jimp 0.x to 1.x?
Expected Behavior
Brightness with a value of 0 should not affect image like it did in v0.x
Brightness with a value of 1 should fully lighten an image like it did in v0.x
Brightness with a value of -1 should fully darken an image like it did in v0.x
Brightness with a value of -0.5 should half darken an image like it did in v0.x
Brightness with a value of 0.5 should half lighten an image like it did in v0.x
Using Jimp V0.x (using Node-RED to simplify testing)
Current Behavior
Brightness with a value of 0 in v1.6 behaves differently - it darkens the image
Brightness with a value of 1 in v1.6 behaves differently - it has little affect on the image
Brightness with a value of -1 correctly fully darkens an image like it did in v0.x
Brightness with a value of -0.5 in v1.6 behaves differently - it FULLY darkens the image
Brightness with a value of 0.5 in v1.6 behaves differently - it half darkens the image
Failure Information (for bugs)
Steps to Reproduce
Demonstrating -0.5 brightness
Demonstrating -0.0 brightness
Demonstrating 1.0 brightness
Context
Failure Logs
The text was updated successfully, but these errors were encountered: