Level 4 actions: Compression Read the image file, decompose into color components (you will generate three gray level images from a color image by separating RGB components) Scan each image and construct the LZW Dictionary Store the binary code instead of gray levels Save the compressed file Calculate entropy, average code length, size of the compressed file and compression ratio Decompression Read the stored data Restore the LZW dictionary Restore the image from the compressed data Save the restored image Compare the original image and restored image.