An image processing device, comprising:
- a first encoding processing portion configured to perform first encoding processing according to a first compression method for compressing multilevel image data;
- a second encoding processing portion configured to perform second encoding processing according to a second compression method for compressing binary image data;
- a third encoding processing portion configured to perform third encoding processing according to a third compression method for compressing binary image data at a higher compression ratio than the second compression method;
- a determination portion configured to determine whether an image made up of acquired image data is a monochrome image;
- a data volume estimating portion configured to make an estimation, in a case where the determination portion determines the image as being the monochrome image, between a first data volume as a data volume when image data forming the monochrome image is compressed by the first encoding processing and a second data volume as a data volume when the image data is compressed by the second encoding processing as to which data volume becomes smaller;
- and
- a file creating portion configured to create a data file from image data of the monochrome image after the first encoding processing by the first encoding processing portion when the data volume estimating portion makes an estimation that the first data volume is smaller than the second data volume and creates a data file from image data of the monochrome image after the second encoding processing by the second encoding processing portion when the data volume estimating portion makes an estimation that the second data volume is smaller than the first data volume, wherein
- the first encoding processing portion performs the first encoding processing on the image data forming the monochrome image when the determination portion determines the image as being the monochrome image;
- the third encoding processing portion performs the third encoding processing on the image data forming the monochrome image when the determination portion determines the image as being the monochrome image;
- the data volume estimating portion includes a data volume comparing portion configured to perform comparing processing to compare a third data volume on the basis of a data volume when the image data forming the monochrome image is compressed by the third encoding processing and the first data volume as to which data volume is larger than the other;
- and
- the data volume comparing portion included the data volume estimating portion compares the first data volume of the image data compressed by the first encoding processing portion and the third data volume of the image data compressed by the third encoding processing portion when the determination portion determines the image as being the monochrome image and makes an estimation that the first data volume is smaller than the second data volume when the first data volume is smaller than the third data volume and an estimation that the second data volume is smaller than the first data volume when the third data volume is smaller than the first data volume.