Patent ID: 8860999

Claim:
A control device comprising: a processor; and a memory that stores a computer program, when executed by the processor, causes the control device to function as: a binarization processing unit which is configured to execute binarization processing on original image data by using at least one of plural types of binarization processing methods to generate binary image data, the plural types of binarization processing methods including a first type of binarization processing method and a second type of binarization processing method; and a compression processing unit which is configured to execute compression processing on the binary image data to generate a compressed image data by using a specific compression processing method which is one of plural types of compression processing methods, the plural types of compression processing methods including a first type of compression processing method appropriate for compression of the binary image data generated by using the first type of binarization processing method, and a second type of compression processing method appropriate for compression of the binary image data generated by using the second type of binarization processing method, wherein the compression processing unit includes: a compression method selection unit which is configured, when the binary image data is generated by using two or more types of binarization processing methods including the first type of binarization processing method and the second type of binarization processing method, to select the specific compression processing method from the plural types of compression processing methods according to a number of using times of the first type of binarization processing method and a number of using times of the second type of binarization processing method, and wherein the compression processing unit is configured to execute compression processing on the binary image data by using the selected specific compression processing method.