When the user's selection input related to the photographing end button is received in operation 707 or when the acquisition time of the first images and/or the second images exceeds the maximum image acquisition time in operation 709, the electronic device ends the acquisition of the first images and/or the second images in operation 711. For a predetermined time based on a maximum frame acquisition time or a time point at which a selection input related to the photographing end button is received, the processor may acquire the plurality of first images having the first attribute and the one or more second images having the second attribute through a first camera. The predetermined time may include a maximum frame acquisition time or a time from a time point at which photographing starts to a time point at which a selection input related to the photographing end button is received.