However, when the histogram information 43 shows a double-peak distribution, that is, when an image is a character image, the number of tone levels is decreased even when the distribution value 41 is large so as to be able to encode the character clearly.