Patent ID: 8582876

Claim:
A method under control of one or more processors configured with executable instructions, the method comprising: dividing a compound image into a plurality of blocks, the compound image including one or more picture portions and at least one non-picture portion; identifying base-colors in the plurality of blocks; determining a number of pixels in each block of the plurality of blocks that are covered by one of the base-colors; determining a distribution of pixel gradients in each block of the plurality of blocks; determining a block boundary smoothness for each block of the plurality of blocks; based on the number of pixels in each block that are covered by one of the base-colors, the distribution of pixel gradients in each block, and the block boundary smoothness for each block, classifying a first set of blocks from the plurality of blocks as picture blocks associated with at least a part of the one or more picture portions and classifying a second set of blocks from the plurality of blocks as non-picture blocks associated with at least a part of the at least one non-picture portion; generating a first layer of a layered image based on the first set of blocks, the first layer of the layered image having a first format; and generating a second layer of the layered image based on the second set of blocks, the second layer of the layered image having a second format that is different from the first format, the first format and the second format supported by at least one type of web browser.