A non-transitory computer-readable storage medium storing a program executable by a processor to execute a method of controlling an inspection apparatus operable to inspect an image printed on paper, the method comprising:
- performing first image processing that is not according to a type of the paper on image data used in printing the image;
- storing the image data for which the first image processing has been performed as a reference image in a memory;
- determining whether a first reference image corresponding to a reference image, which is usable in a job to be inspected, is stored in the memory;
- upon determining that the first reference image is stored in the memory, performing second image processing that is according to the type of the paper on the first reference image to convert the first reference image into a second reference image corresponding to the job;
- obtaining a scanned image by reading an image of paper on which printing has been performed according to a print job;
- and
- performing processing for matching the obtained scanned image and the second reference image.