调用 类似命令行调用,参数表中不能有空格
import com.sloan.jpegoptim.JpegOptim;
# call
public static void main(String[] args) {
JpegOptim.doExec("jpegoptim -d out -m 80 a.jpg");
}
This is just my own project files for easy building of jpegoptim with mozjpeg and Microsoft Visual Studio. Currently only 64-bit (x64) is targeted.
Modify & Fork from https://github.com/XhmikosR/jpegoptim-windows
- MultiThreaded; no need for the MSVC Runtime to be installed separately
- Built with LTCG
- Runs on Vista and newer
- Just test on Win10 Home x64
- Clone the repository
Alternatively you can do
git clone --recursive https://github.com/sloanyyc/jpegoptim-windows.git
- Download and install Visual Studio 2019 (any edition)
- Download nasm and place
nasm.exe
somewhere into yourPATH
- Open
jpegoptim.sln
and build