Thanks to @mkrieger1 for this one, some images I used literally have over 100000 colors.... Something I NEVER expected to happen, so .getcolors()
returned None
. I changed the value to 100 million so I hopefully never face this problem ever again.
all_colors = main_img.getcolors(maxcolors=100000000)