This document describes how ImageMagick performs color reduction on an image To fully understand what follows  you should have a knowledge of basic imaging techniques and the tree data structure and terminology