1. A method for selecting an image encoder, the method comprising: generating a grayscale histogram of an image, wherein the grayscale histogram includes a respective number of pixels for a plurality of histogram values; determining a respective percentage of pixels in each of the histogram values based on the number of pixels for the respective histogram value and a total number of pixels in the image; comparing the percentages of pixels in the histogram values to a first threshold; adding the percentages of pixels in the histogram values that exceed the first threshold to a total percentage; comparing the total percentage to a second threshold; and encoding the image with an encoder that is selected based on the second threshold.