1. An apparatus for image compression in which image blocks composes an image are transmitted to a buffer and an encoder block by block, instead of row by row of the image, comprising: an image acquisition device for partitioning an image into a plurality of image blocks, selecting one of the image blocks as a selected image block, and outputting the selected image block, wherein the image has A×B pixels, each of the image blocks has N×M pixels, where N is less than A and M is less than B; and an encoder for compressing the selected image block and producing a compressed image block based on the selected image block until the image blocks are compressed into a plurality of compressed image blocks, wherein a compressed image file is produced according to the compressed image blocks.