An electronic device comprising: an image sensor; a memory (130, 250); and a processor (120, 260), wherein the processor (120, 260) is configured to control the electronic device to: obtain a plurality of image frames (580, 680, 780, 1011) comprising external light generated by external light source causing a flicker and an external object at a first designated frame rate using the image sensor, based on a capturing signal; identify a frequency of the flicker related to the external light source; generate first section images (590, 690, 790, 1317) for at least a part of a time for which the plurality of image frames are obtained using frames selected from said plurality of image frames having similar luminance, said first section having a second designated frame rate based at least on the identified flicker frequency, the second designated frame rate being lower than the first designated frame rate; generate second section images for at least a part of the time for which the plurality of image frames are obtained, said second section images having the first designated frame rate, in response at least to a designated event during recording of the first section images, using image frames obtained at the first designated frame rate after the designated event from among the plurality of image frames, wherein the designated event corresponds with a user input for requesting recording of a moving image and/or with detection of at least one of a motion of an object in an image and a change in a sound; and generate moving image data comprising at least the first section images and the second section images. an image sensor; a memory (130, 250); and a processor (120, 260), wherein the processor (120, 260) is configured to control the electronic device to: obtain a plurality of image frames (580, 680, 780, 1011) comprising external light generated by external light source causing a flicker and an external object at a first designated frame rate using the image sensor, based on a capturing signal; identify a frequency of the flicker related to the external light source; generate first section images (590, 690, 790, 1317) for at least a part of a time for which the plurality of image frames are obtained using frames selected from said plurality of image frames having similar luminance, said first section having a second designated frame rate based at least on the identified flicker frequency, the second designated frame rate being lower than the first designated frame rate; generate second section images for at least a part of the time for which the plurality of image frames are obtained, said second section images having the first designated frame rate, in response at least to a designated event during recording of the first section images, using image frames obtained at the first designated frame rate after the designated event from among the plurality of image frames, wherein the designated event corresponds with a user input for requesting recording of a moving image and/or with detection of at least one of a motion of an object in an image and a change in a sound; and generate moving image data comprising at least the first section images and the second section images. obtain a plurality of image frames (580, 680, 780, 1011) comprising external light generated by external light source causing a flicker and an external object at a first designated frame rate using the image sensor, based on a capturing signal; identify a frequency of the flicker related to the external light source; generate first section images (590, 690, 790, 1317) for at least a part of a time for which the plurality of image frames are obtained using frames selected from said plurality of image frames having similar luminance, said first section having a second designated frame rate based at least on the identified flicker frequency, the second designated frame rate being lower than the first designated frame rate; generate second section images for at least a part of the time for which the plurality of image frames are obtained, said second section images having the first designated frame rate, in response at least to a designated event during recording of the first section images, using image frames obtained at the first designated frame rate after the designated event from among the plurality of image frames, wherein the designated event corresponds with a user input for requesting recording of a moving image and/or with detection of at least one of a motion of an object in an image and a change in a sound; and generate moving image data comprising at least the first section images and the second section images.