Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashley Grenon townsean

View GitHub Profile
@townsean
townsean / pixel-color-count.py
Created Oct 9, 2019
Gets a sum of pixels per unique color
View pixel-color-count.py
# pixel-color-count.py - Gets a sum of pixels per unique color
# maintainer - Ashley Grenon @townsean
import argparse
try:
from PIL import Image
except ImportError:
exit("This script requires the PIL module. Install with pip install Pillow")
try:
You can’t perform that action at this time.