1. An image processing apparatus comprising: a first acquisition unit configured to acquire an input image; a second acquisition unit configured to acquire a shooting condition for the input image; a generation unit configured to generate a plurality of blurred images different in degree of blur from the input image; a synthesis unit configured to synthesize the input image and at least one of the blurred images generated by said generation unit; and a setting unit configured to set a synthesis ratio between the images to be synthesized, based on the shooting condition acquired by said second acquisition unit for the input image.