A computer-readable non-transitory storage medium storing a chromatic-aberration-of-magnification method for correcting for chromatic aberration of magnification for image data that is obtained through an image-forming optical system having an image pickup lens and has color signals of a plurality of colors, the method comprising:
- an edge extraction step of extracting areas including edge portions in the image data;
- a first calculation step of calculating an amount of chromatic aberration of magnification as an amount of area chromatic aberration of magnification in each of the areas with respect to each color component according to the color signals;
- a second calculation step of, based on lens design values relating to lenses provided in the image-forming optical system, calculating chromatic aberration of magnification in each of the areas as an amount of lens chromatic aberration of magnification;
- and
- a determination step of, by using the amount of area chromatic aberration of magnification and the amount of lens chromatic aberration of magnification in adjacent areas next to an indefinite area matching conditions prescribed in advance, correcting the amount of lens chromatic aberration of magnification relating to the indefinite area to determine the amount of area chromatic aberration of magnification relating to the indefinite area.