To get your original JPEG back (perfectly restored):

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% .

# On Mac/Linux for file in *.jpg; do lepton "$file" "$file%.jpg.lep" done Get-ChildItem -Filter *.jpg | ForEach-Object lepton $ .FullName "$($ .BaseName).lep"

lepton output.lep restored_image.jpg If you are thinking, “Why isn’t everyone using this?” — here is the catch.