An electronic apparatus, comprising: a converting means configured to convert a JPEG image having a first gradation resolution into a pseudo-high dynamic range, HDR, image generated by converting the first gradation resolution to a second gradation resolution which is higher than the first gradation resolution, and converting a gradation characteristic of the JPEG image into a second gradation characteristic; a connecting means configured to connect with an external apparatus supporting a standard dynamic range, SDR, connection mode and an HDR connection mode; a setting means configured to set a connection mode with the external apparatus to the SDR connection mode or the HDR connection mode, wherein in the SDR connection mode an image having a gradation resolution which is not higher than the first gradation resolution is outputted, and in the HDR connection mode an image having a gradation resolution which is higher than the first gradation resolution is outputted; and a control means configured to control so that in a case where the connection is in the SDR connection mode and an image to be reproduced is a JPEG image, the JPEG image is outputted from the connecting means without converting the JPEG image by the converting means, and in a case where the connection is in the HDR connection mode and an image to be reproduced is a RAW image, a JPEG image which is recorded in association with the RAW image in the electronic apparatus is converted by the converting means into the pseudo-HDR image and outputted from the connection means, and an HDR image having the second gradation resolution and the second gradation characteristic is generated from the RAW image and is then outputted from the connecting means instead of the pseudo-HDR image, and in a case where an image switching operation to an image to be reproduced, which is a JPEG image which is recorded in the electronic apparatus but is not recorded in association with a RAW image, is performed while connection is in the HDR connection mode, the HDR connection mode is maintained without changing to the SDR connection mode, the JPEG image is converted by the converting means, and the pseudo-HDR image converted by the converting means is outputted from the connecting means. a converting means configured to convert a JPEG image having a first gradation resolution into a pseudo-high dynamic range, HDR, image generated by converting the first gradation resolution to a second gradation resolution which is higher than the first gradation resolution, and converting a gradation characteristic of the JPEG image into a second gradation characteristic; a connecting means configured to connect with an external apparatus supporting a standard dynamic range, SDR, connection mode and an HDR connection mode; a setting means configured to set a connection mode with the external apparatus to the SDR connection mode or the HDR connection mode, wherein in the SDR connection mode an image having a gradation resolution which is not higher than the first gradation resolution is outputted, and in the HDR connection mode an image having a gradation resolution which is higher than the first gradation resolution is outputted; and a control means configured to control so that in a case where the connection is in the SDR connection mode and an image to be reproduced is a JPEG image, the JPEG image is outputted from the connecting means without converting the JPEG image by the converting means, and in a case where the connection is in the HDR connection mode and an image to be reproduced is a RAW image, a JPEG image which is recorded in association with the RAW image in the electronic apparatus is converted by the converting means into the pseudo-HDR image and outputted from the connection means, and an HDR image having the second gradation resolution and the second gradation characteristic is generated from the RAW image and is then outputted from the connecting means instead of the pseudo-HDR image, and in a case where an image switching operation to an image to be reproduced, which is a JPEG image which is recorded in the electronic apparatus but is not recorded in association with a RAW image, is performed while connection is in the HDR connection mode, the HDR connection mode is maintained without changing to the SDR connection mode, the JPEG image is converted by the converting means, and the pseudo-HDR image converted by the converting means is outputted from the connecting means.