Environment python 2.7.10 Install dependency pip install PIL pip install numpy Run python quad-tree.py # Create a new image called quantized-file.jpg Result Origin Quantized Image