an electronic camera includes : an image sensor for converting an optical image relating to a photographic object into electric signals ; a processor for compress - processing image data corresponding to the electric signals at a predetermined compression ratio for each of a plurality of blocks to obtain compressed image data . the processor compares a data amount of the compressed image data with a predetermined amount of data , and compress - processes again the image data at a compression ratio greater than the predetermined compression ratio only when the data amount of the compressed image data exceeds the predetermined amount of data . the electronic camera further includes a recorder for storing the compressed image data compress - processed by the processor in a memory medium .