amueller / word_cloud

A little word cloud generator in Python
https://amueller.github.io/word_cloud
MIT License
10.1k stars 2.31k forks source link

fix #501 #768

Open chaseleif opened 3 months ago

chaseleif commented 3 months ago

Issue was caused when using RGB mask and requesting RGBA output. Arrays had differing dimensions (mask did not have alpha). Duplicate a channel and append it to the contour, this allows the subsequent math operations.

Followed instructions in CONTRIBUTING.md, flake8 and pytest. flake8 reports 2 lines in wordcloud_cli.py (that I did not touch) pytest passes all 76 collected items