flrs / blend_modes

Python package that implements image blend modes
MIT License
140 stars 28 forks source link

np.NAN error #29

Open yuxi-liu-wired opened 1 month ago

yuxi-liu-wired commented 1 month ago

https://github.com/flrs/blend_modes/blob/master/blend_modes/blending_functions.py#L69

should be changed to

    ratio[ratio == np.nan] = 0.0
flrs commented 1 month ago

Dear @yuxi-liu-wired , thank you for your kind bug report. As I do not have resources to fix this right now, I would kindly invite you to do a pull request with the change, if you are interested. Thanks a lot!