An electronic device comprising: a lens; an infrared filter; an image sensor; an infrared sensor; and at least one processor (260, 120) operably coupled to the image sensor and the infrared sensor, wherein the at least one processor is configured to: receive image data that is based on external light passing through the lens and the infrared filter and arriving at the image sensor, from the image sensor, identify an intensity of infrared light comprised in the external light, at least based on sensor data of the infrared sensor, and in response to the identifying of the intensity of the infrared light, adjust a color of at least a portion of the image data at least based on the intensity of the infrared light, characterized in that the adjusting the color of the at least a portion of the image data comprises: identifying whether the intensity of the infrared light comprised in the external light exceeds threshold, and in response to identifying that the intensity of the infrared light exceeds the threshold, enhancing red light compared to green light or blue light of the image data, and wherein the threshold is determined based on a brightness of the external light, and the threshold has a larger value as the brightness of external light increases. a lens; an infrared filter; an image sensor; an infrared sensor; and at least one processor (260, 120) operably coupled to the image sensor and the infrared sensor, wherein the at least one processor is configured to: receive image data that is based on external light passing through the lens and the infrared filter and arriving at the image sensor, from the image sensor, identify an intensity of infrared light comprised in the external light, at least based on sensor data of the infrared sensor, and in response to the identifying of the intensity of the infrared light, adjust a color of at least a portion of the image data at least based on the intensity of the infrared light, characterized in that the adjusting the color of the at least a portion of the image data comprises: identifying whether the intensity of the infrared light comprised in the external light exceeds threshold, and in response to identifying that the intensity of the infrared light exceeds the threshold, enhancing red light compared to green light or blue light of the image data, and receive image data that is based on external light passing through the lens and the infrared filter and arriving at the image sensor, from the image sensor, identify an intensity of infrared light comprised in the external light, at least based on sensor data of the infrared sensor, and in response to the identifying of the intensity of the infrared light, adjust a color of at least a portion of the image data at least based on the intensity of the infrared light, characterized in that identifying whether the intensity of the infrared light comprised in the external light exceeds threshold, and in response to identifying that the intensity of the infrared light exceeds the threshold, enhancing red light compared to green light or blue light of the image data, and wherein the threshold is determined based on a brightness of the external light, and the threshold has a larger value as the brightness of external light increases.