1. An image compression device comprising: a basic unit setting unit configured to set a basic unit of compression by using each of a plurality of color elements forming colors of pixels of image data independently or combining the plurality of color elements arbitrarily; and a compression process unit configured to compress a value of the basic unit set by the basic unit setting unit, according to an encoding process based on a predetermined rule.