A non-transitory computer-readable storage medium storing computer instructions that, when executed by a processor, cause a computer to execute a method of controlling an image capturing apparatus comprising:
- determining parameters including a shutter speed before flash light emission photographing is performed;
- and
- selectively executing first control for controlling a traveling speed of a front curtain of a shutter and a traveling speed of a rear curtain of the shutter to the same speed, and second control for controlling the traveling speed of the front curtain to be higher than the traveling speed of the rear curtain,
- wherein before flash light emission photographing is performed, determining which of the first control and the second control is to be adopted according to the shutter speed in the parameters,
- adopting the first control in a case where the shutter speed is lower than a first shutter speed, and adopting the second control in a case where the shutter speed is equal to or higher than the first shutter speed,
- wherein before flash light emission photographing is performed, provisionally determining an amount of flash light emission, and
- wherein in a case where the shutter speed is equal to or higher than a second shutter speed which is higher than the first shutter speed, and also the provisionally determined flash light emission amount is equal to or larger than a predetermined amount of light emission, limiting the amount of flash light emission when photographing is performed, to a value smaller than the provisionally determined flash light emission amount.