An electronic device (101,102,104;201) comprising: a display (160;260); a camera module comprising a camera; a memory ; and a processor (120;210) connected electrically to the display, the camera module, and the memory, wherein the memory stores instructions which when executed by the processor cause the electronic device to perform at least one operation comprising: identifying a set shutter input method, moving a lens of the camera module to a first location if the set shutter input method is a predetermined shutter input method, moving the lens of the camera module to a second location if the set shutter input method is not the predetermined shutter input method, receiving a shutter input, and capturing an image using the camera module in response to the received shutter input; wherein the set shutter input method comprises at least one of a shutter input method through a touch input, and a shutter input method through a physical button input, or at least one of a shutter input method using a timer, a shutter input method using voice recognition, and a shutter input method using gesture recognition, wherein the predetermined shutter input method comprises at least one of a shutter input method using a timer, a shutter input method using voice recognition, and a shutter input method using gesture recognition, and wherein the first location has a greater focal length than the second location. a display (160;260); a camera module comprising a camera; a memory ; and a processor (120;210) connected electrically to the display, the camera module, and the memory, wherein the memory stores instructions which when executed by the processor cause the electronic device to perform at least one operation comprising: identifying a set shutter input method, moving a lens of the camera module to a first location if the set shutter input method is a predetermined shutter input method, moving the lens of the camera module to a second location if the set shutter input method is not the predetermined shutter input method, receiving a shutter input, and capturing an image using the camera module in response to the received shutter input; identifying a set shutter input method, moving a lens of the camera module to a first location if the set shutter input method is a predetermined shutter input method, moving the lens of the camera module to a second location if the set shutter input method is not the predetermined shutter input method, receiving a shutter input, and capturing an image using the camera module in response to the received shutter input; wherein the set shutter input method comprises at least one of a shutter input method through a touch input, and a shutter input method through a physical button input, or at least one of a shutter input method using a timer, a shutter input method using voice recognition, and a shutter input method using gesture recognition, wherein the predetermined shutter input method comprises at least one of a shutter input method using a timer, a shutter input method using voice recognition, and a shutter input method using gesture recognition, and wherein the first location has a greater focal length than the second location. <EOS>