Preview Image compression addresses the problem of reducing the amount of data required to represent a digital image. Compression is achieved by the removal of one or three…