Patent ID: 7400349

Claim:
An electronic camera that creates an image file, which is a JPEG file, by processing image data obtained through an image-capturing operation, comprising: an image-capturing unit that generates the image data by capturing a subject image; an image compression unit that generates compressed data by executing image compression on the image data generated by the image-capturing unit, the compressed data including RST marker codes; a data extraction unit that sets an image plane range corresponding to an image portion of the image data, selects data corresponding to the image plane range from the compressed data based upon the RST marker codes, and extracts the selected data as data of the image portion; a data insertion unit that writes compressed data of a predetermined specific image over the data corresponding to the image plane range of the compressed data and generates data of a processed image; and a file creation unit that creates the image file by storing the data of the processed image into a frame, which is an image area of the JPEG file and is referenced as image data, and storing the data of the image portion into an application segment, which is a non-image area of the JPEG file and is not referenced as image data, wherein: the file creation unit includes an encryption unit that encrypts the data of the image portion and stores the data encrypted by the encryption unit into the non-image area.