In the first embodiment described above, when the controller 8 determines that the calculated main-scan effective pixel count (N) is N=4???K (K is a natural number), the controller 8 controls the image reader 1 and memory controller 4 using as a new main-scan effective pixel count a value N+1 obtained by adding 1 to the calculated effective pixel count N, thereby controlling the write operation to