Patent ID: 7502514

Claim:
A method of compressing JPEG files, the method comprising the steps of: (a) receiving an input JPEG file using an input data unit; (b) partially decompressing the JPEG blocks using a JPEG blocks decompressor to the point where quantized blocks are reconstructed; (c) compressing the quantized blocks using an image data compressor, wherein, the image data compressor includes a JPEG block compressor and proceeds in a loop using the steps of receiving image data from the decompression of the JPEG blocks from step (b); determining whether the image block can be copied; copying the image block if it can be copied and sending the copied block into output; compressing the DC coefficient using a DC encoder and the AC values using an AC encoder, if the image block cannot be copied; determining whether the end of the image has been reached, applying no further compression if the end of the image has been reached and storing the image block; and compressing the image block further using the JPEG block compressor if the end of the image has not been reached, wherein said compression employs an algorithm more aggressive than and superior to the originally employed compression algorithm, and passing the compressed image block into the output stream; and (d) sending the output of step (c) into the data output stream using an output data unit.