PROBLEM TO BE SOLVED: To provide a compression method of image data that simplifies processing and compresses image data, where the difference between the data size of the data after designated compression and a data size of data subjected to JPEG compression and, to provide a computer-readable recording medium for recording an image data compression program and a digital still camera. SOLUTION: Reduced image data are generated from original image data (S410). The generated reduced image data are subjected to JPEG compression (S420), to generate thumbnail pictures. An estimated bit stream size is calculated, when the original image data are subjected to JPEG compression from the bit stream size of the thumbnail images (S430). A compression rate calculation table is selected, depending on the bit stream size of the thumbnail images (S440), and an execution compression rate, when the original image data are subjected to JPEG compression is decided from the compression rate calculation table and from a ratio of the estimated bit stream size calculated in S450 to the data size of the designated image data (S460).
展开▼