Skip to content

Commit 3e91701

Browse files
borekonXhmikosR
authored andcommitted
Update README.md
Added sample script
1 parent 1517267 commit 3e91701

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ Currently only 64-bit (x64) is targeted.
2929
2. Download and install [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/) (any edition)
3030
3. Download [nasm](https://www.nasm.us/) and place `nasm.exe` somewhere into your `PATH`
3131
4. Open `jpegoptim.sln` and build, or run `build.bat`
32+
33+
## Sample script
34+
35+
There's a sample script that loop all the subfolders in a folder optimizing pictures.
36+
37+
```bat
38+
for /f "tokens=*" %%i in ('dir /a:d /b') do (
39+
jpegoptim.exe --preserve --verbose --totals "%%i\*.jpg"
40+
)
41+
```

0 commit comments

Comments
 (0)