Created
December 31, 2025 13:56
-
-
Save dhcgn/e7ee14963273b71ae8f7b36cfe8751d2 to your computer and use it in GitHub Desktop.
Reencode large JPEG files with jpegli and preserve exif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download from https://github.com/dhcgn/jpegli-windows-explorer-extension | |
| $jpegliconverter = "C:\Users\danie\AppData\Local\jpegli-windows-explorer-extension\jpegli-windows-explorer-extension.exe" | |
| gci $f -File -Recurse -Filter *.jpg -Verbose | ?{$_.Length -gt 35mb} | sort -Property Length -Descending | %{ .$jpegliconverter ("{0}" -f $_.FullName) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment