To reduce the amount of data transferred from an electronic apparatus to
other electronic apparatus, a first compression unit compresses image
data in units of m bits with a predetermined pattern to produce first
compression data. A second compression unit compresses the first
compression data in units of k bits to produce second compression data.
And, an output unit outputs the second compression data according to a
production order of the second compression data produced from the second
compression unit.