A non-transitory computer-readable storage medium storing computer-readable program code that causes an information processing apparatus to perform a control method, the control method comprising:
- acquiring, as a first image, a read image of an image formed on a medium by a print engine of an image forming apparatus;
- generating, as a second image, an image to be compared with the first image, based on document data;
- detecting a plurality of reference points from the second image;
- comparing the first image with the second image to calculate an amount of positional deviation of the medium for each of the plurality of reference points;
- detecting, based on the amount of positional deviation, a malfunction of a conveying device that conveys the medium to print engine of an image forming apparatus;
- causing the image forming apparatus to print a correction chart for correction of conveyance of the medium, in response to the detecting the malfunction of the conveying device;
- calculating, from a read image of the correction chart, an amount of fluctuation in conveyance of the medium performed by the conveying device;
- calculating a correction value for the calculated amount of fluctuation in conveyance of the medium;
- and
- correcting an amount of conveyance performed by the conveying device, based on the calculated correction value.