Please ensure to place the .jpg file within the same directory as this code file before proceeding. You will take output.jpg as compressed