I. Introduction
An image can be defined as a matrix of pixel or intensity values. Image compression is used to reduce the redundancy and randomness present in the image because to increase the storing capacity and efficiency level of the images. Therefore it is essential to compress the images by storing only the required information needed to reconstruct the image. To compress any image, redundancy must be removed. Sometimes images having large areas of same color will have large redundancies and similarly images that have frequent and large changes in color will be less redundant and harder to compress [1]–[3].