WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

fix Image Levels Adjustment function to use mid_level #465

Closed drozbay closed 3 months ago

drozbay commented 3 months ago

The mid_level in the Image Adjust Levels node was not previously used. I tested the function and the output is exactly the same as the previous functionality if the condition is met: mid_level == (white_level-black_level)/2 + black_level

WASasquatch commented 3 months ago

Thanks for the PR! I had actually been meaning to fix this but the code also ended up in another project where the fix lives that I can't bring here (license stuff) so had to just remake the node which didn't want to do lately.