1. An image processing apparatus, comprising: a central processing unit (CPU); and a memory having stored thereon instructions that when executed by the CPU, cause the CPU to perform control to cause the image processing apparatus to: obtain a RAW image generated from a captured image; perform first development processing of developing the RAW image to obtain a developed image; store, into a storage medium, the RAW image as a RAW image file and the developed image obtained by the first development processing as an image file; read the RAW image file stored in the storage medium and perform second development processing of developing the RAW image to obtain a developed image having higher image quality than the developed image obtained by the first development processing; output the developed image obtained by the first or second development processing as a display image; recieve an instruction for enlarging a partial area of the display image; and perform a switching operation to output the developed image obtained by the second development processing in a case where the instruction for enlarging the partial area is given in a state in which the developed image obtained by the first development processing is displayed as the display image.