I am a Windows user trying to get started with jpegtran and have not found a way to actually access the program. All the questions that I found begin on the command line, but when I try to duplicate the commands, I get errors such as:
After viewing this question :
I tried to execute these commands:
@echo none for /f "delims=" %%a in ('dir "*.jpg" /b /s /a-d') do ( echo processing "%%a" "C:\Program Files\Image Optimization\jpegtran.exe" -optimize -progressive -copy none "%%a" "%%a.tmp" move /Y "%%a.tmp" "%%a" >nul ) pause
I get the error "%% a at this time was not expected."
My question is how to configure the folder structure for images, jpegtran.exe and command line so that this command is executed?
source share