Patent attributes
A method and an apparatus for image compression. First, an image is partitioned into a plurality of image blocks, the image having A×B pixels, each of the image blocks having N×M pixels, wherein N is less than A and M is less than B. Next, a selected image block is outputted by selecting one of the image blocks as the selected image block. After that, a compressed image block is produced by storing the selected image block and compressing the selected image block. The step of outputting the selected image block and the step of producing the compressed image block are repeated until the image blocks are compressed into a plurality of compressed image blocks. Finally, a compressed image file is produced according to the compressed image blocks.