Skip to content

abubaca4/powershell-jpg-png-optimization-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powershell-jpg-png-optimization-script

Using oxipng and mozjpeg

Place oxipng.exe in oxipng dir and cjpeg-static.exe, jpegtran-static.exe in mozjpeg dir

Download exe from https://github.com/garyzyg/mozjpeg-windows/releases and https://github.com/oxipng/oxipng/releases

Using

.\<script name> "<input path>" "<output path>"

or

.\<script name> "<input path>"

jpg_opt.ps1 test 21 parameter combinations and select best

jpg_opt_losless.ps1 use jpegtran to losless jpg optimization

png_opt.ps1 oxipng optimization

png_opt_slow.ps1 oxipng optimization with Zopfli(x100 slower, 2-8% better)

png_opt.ps1 and png_opt_slow.ps1 always multithreaded since multithreading is built into oxipng

jpg_opt.ps1 and jpg_opt_losless.ps1 multithread if ps version 7+

About

Using oxipng and mozjpeg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published