lepton input.jpg output.lep Expected result: You will see a output.lep file that is roughly 22% smaller than input.jpg . Use a simple loop to compress everything:
Enter —a brilliant, yet lesser-known, image compression tool developed by Google (specifically, the team behind Dropbox’s image optimization research). Unlike standard JPEG compressors that strip metadata or lower quality, Lepton uses a sophisticated predictive coding method to losslessly compress JPEGs by an average of 22% .
lepton output.lep restored_image.jpg If you are thinking, “Why isn’t everyone using this?” — here is the catch.
To get your original JPEG back (perfectly restored):