/usr/local/bin/tiffmedian
tiffmedian applies the median cut algorithm to an RGB image in input.tif to generate a palette image that is written to output.tif.