gtaylor / python-colormath

A python module that abstracts common color math operations. For example, converting from CIE L*a*b to XYZ, or from RGB to CMYK
python-colormath.readthedocs.org
BSD 3-Clause "New" or "Revised" License
456 stars 83 forks source link

Add several checks to prevent division by zero (triggered by converting ... #37

Closed dwbullok closed 10 years ago

dwbullok commented 10 years ago

There are a few places where division by zero occurs when converting black. Added checks to prevent this.

gtaylor commented 10 years ago

Thanks, good catch.

rememberlenny commented 10 years ago

Nice