An electronic device comprising: a communication circuit; a memory configured to store contents including a fourth image in which a virtual reality is realized; and at least one processor electrically connected to the communication circuit and the memory, wherein the at least one processor is configured to: identify a first external electronic device that is around the electronic device, the first external electronic device being configured to photograph a first subject, wherein if the first external electronic device is identified to photograph the first subject, transmit a first command to the first external electronic device through the communication circuit to photograph the first subject by using a camera of the first external electronic device, receive a first image of the first subject based on the first command from the first external electronic device through the communication unit, characterized in that the at least one processor is further configured to: set at least a part of the fourth image as a background image for a virtual capture image, set a second subject for the virtual capture image, wherein the second subject is extracted from the first image, transmit a second command to the first external electronic device through the communication circuit to photograph the second subject by using a camera of the first external electronic device, receive a second image of the second subject based on the second command from the first external electronic device through the communication circuit, and generate a third image as the virtual capture image using the background image and the second image. a communication circuit; a memory configured to store contents including a fourth image in which a virtual reality is realized; and at least one processor electrically connected to the communication circuit and the memory, wherein the at least one processor is configured to: identify a first external electronic device that is around the electronic device, the first external electronic device being configured to photograph a first subject, wherein if the first external electronic device is identified to photograph the first subject, transmit a first command to the first external electronic device through the communication circuit to photograph the first subject by using a camera of the first external electronic device, receive a first image of the first subject based on the first command from the first external electronic device through the communication unit, characterized in that the at least one processor is further configured to: set at least a part of the fourth image as a background image for a virtual capture image, set a second subject for the virtual capture image, wherein the second subject is extracted from the first image, transmit a second command to the first external electronic device through the communication circuit to photograph the second subject by using a camera of the first external electronic device, receive a second image of the second subject based on the second command from the first external electronic device through the communication circuit, and generate a third image as the virtual capture image using the background image and the second image. identify a first external electronic device that is around the electronic device, the first external electronic device being configured to photograph a first subject, wherein if the first external electronic device is identified to photograph the first subject, transmit a first command to the first external electronic device through the communication circuit to photograph the first subject by using a camera of the first external electronic device, receive a first image of the first subject based on the first command from the first external electronic device through the communication unit, characterized in that the at least one processor is further configured to: set at least a part of the fourth image as a background image for a virtual capture image, set a second subject for the virtual capture image, wherein the second subject is extracted from the first image, transmit a second command to the first external electronic device through the communication circuit to photograph the second subject by using a camera of the first external electronic device, receive a second image of the second subject based on the second command from the first external electronic device through the communication circuit, and generate a third image as the virtual capture image using the background image and the second image. set at least a part of the fourth image as a background image for a virtual capture image, set a second subject for the virtual capture image, wherein the second subject is extracted from the first image, transmit a second command to the first external electronic device through the communication circuit to photograph the second subject by using a camera of the first external electronic device, receive a second image of the second subject based on the second command from the first external electronic device through the communication circuit, and generate a third image as the virtual capture image using the background image and the second image.