A non-transitory storage medium on which is stored a program of an imaging device that performs a first process of moving an imaging element a predetermined amount with respect to the imaging device for each exposure to acquire a plurality of images, the imaging device executing the following on the basis of the program:
- target value setting for setting an image blur correction target value on the basis of a shake of the imaging device detected by a detection unit;
- and
- correcting for controlling a correction unit in accordance with the image blur correction target value to perform a second process of correcting an image blur, wherein the second process is performed during each exposure to acquire the plurality of images,
- wherein the target value setting fixes the image blur correction target value to a predetermined value when the first process is performed.