1. • Starting from a given image, the goal of thetrue compression is to minimize the length ofthe sequence of bits needed to represent it,while preserving information of…