A non-transitory computer-readable storage medium which stores a computer program to be executed in a processor of an image processing apparatus, wherein the program, when executed, carries out a method comprising:
- setting an image processing condition for performing image processing, that is set based on (a) output characteristics of an output apparatus that outputs image data and (b) image characteristics related information obtained when the image data is obtained by image-capturing an object;
- and
- processing the image data to control sharpness representing a three-dimensional appearance of an image, using (a) distance information equivalent to a distance from a focal plane at the time of image-capturing the object and (b) the set image processing condition,
- wherein in the processing, the image data is processed to control the sharpness, by targeting contrast reproduction characteristics of the image data obtained by the image-capturing the object.