Created
March 24, 2015 18:34
-
-
Save tracker1/e41d6b7dc55f962d85a3 to your computer and use it in GitHub Desktop.
Image Optimization Batch Files
This file contains 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
@echo off | |
set batchdir=%~d0%~p0 | |
:start | |
"%batchdir%pngquant.exe" --ext .q.png --force --verbose 256 %1 | |
"%batchdir%optipng.exe" -force -o4 -out "%~dpn1.opt.png" "%~dpn1.q.png" | |
del "%~dpn1.q.png" | |
shift | |
if NOT x%1==x goto start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment