A non-transitory computer-readable storage medium that stores a program for causing a computer to execute a method of controlling an image processing apparatus that comprises
- a scanner that reads a document to generate image data,
- an image processing unit configured to perform image processing, and
- a printer, the method comprising:
- determining whether the image processing on the image data is to be executed in parallel with other image processing different from the image processing;
- judging whether the printer starts printing an image of the document after reading of an image of a first page of the document is completed or the printer starts printing the image of the document without waiting for the reading of the image of the first page of the document to be completed;
- setting, based on judgment that the printer starts printing an image of the document after reading of an image of a first page of the document is completed, a frequency of a transfer clock for transferring the image data from the scanner to the image processor to a predetermined frequency, in a case where it is determined that the image processing on the image data is not to be executed in parallel with the other image processing different from the image processing;
- and
- setting, based on judgment that the printer starts printing the image of the document without waiting for the reading of the image of the first page of the document to be completed, the frequency of the transfer clock to another frequency lower than the predetermined frequency, in a case where it is determined that the image processing on the image data is not to be executed in parallel with the other image processing different from the image processing.