A photographing method for generating a panoramic image or a three-dimensional, 3D, image, comprising: photographing a plurality of overlapping images through a photographing module functionally connected to an electronic device; providing a photographing guide associated with a validity of at least one photographed image of the plurality of photographed images during the photographing of the plurality of images; and generating the panoramic image or the 3D image using the plurality of photographed images, wherein the providing of the photographing guide comprises: displaying, on a display functionally connected to the electronic device, an image currently photographed by the photographing module and a thumbnail window that displays a thumbnail image formed from one or more images of the plurality of photographed images photographed prior to the image currently photographed by the photographing module in a position within the thumbnail window corresponding to the relative location of the one or more images of the plurality of photographed images photographed prior to the image currently photographed by the photographing module in the entire photographing scope corresponding to the plurality of photographed images; determining the validity of the currently photographed image based on a degree of distortion of the currently photographed image with respect to a reference photographed image due to subject distance; and displaying a visual guide that indicates the validity of the currently photographed image, in association with the thumbnail window, and wherein the visual guide is provided in a box shape having a variable size, and the variable size of the box shape is adjusted to correspond to the degree of distortion of the currently photographed image. photographing a plurality of overlapping images through a photographing module functionally connected to an electronic device; providing a photographing guide associated with a validity of at least one photographed image of the plurality of photographed images during the photographing of the plurality of images; and generating the panoramic image or the 3D image using the plurality of photographed images, wherein the providing of the photographing guide comprises: displaying, on a display functionally connected to the electronic device, an image currently photographed by the photographing module and a thumbnail window that displays a thumbnail image formed from one or more images of the plurality of photographed images photographed prior to the image currently photographed by the photographing module in a position within the thumbnail window corresponding to the relative location of the one or more images of the plurality of photographed images photographed prior to the image currently photographed by the photographing module in the entire photographing scope corresponding to the plurality of photographed images; determining the validity of the currently photographed image based on a degree of distortion of the currently photographed image with respect to a reference photographed image due to subject distance; and displaying a visual guide that indicates the validity of the currently photographed image, in association with the thumbnail window, and displaying, on a display functionally connected to the electronic device, an image currently photographed by the photographing module and a thumbnail window that displays a thumbnail image formed from one or more images of the plurality of photographed images photographed prior to the image currently photographed by the photographing module in a position within the thumbnail window corresponding to the relative location of the one or more images of the plurality of photographed images photographed prior to the image currently photographed by the photographing module in the entire photographing scope corresponding to the plurality of photographed images; determining the validity of the currently photographed image based on a degree of distortion of the currently photographed image with respect to a reference photographed image due to subject distance; and displaying a visual guide that indicates the validity of the currently photographed image, in association with the thumbnail window, and wherein the visual guide is provided in a box shape having a variable size, and the variable size of the box shape is adjusted to correspond to the degree of distortion of the currently photographed image.