batch convert a folder full of .jpg files to .jp2
Posted: 2014-10-07T19:22:25-07:00
I have a folder full of .jpg files that I would like to convert to .jp2 (jpeg 2000)
I tried a batch file like below but it's not working. I run the batch file in the same folder with the .jpg image files. Any help would be greatly appreciated.
===========================================
SETLOCAL EnableDelayedExpansion
SET CONVERT="%PROGRAMFILES%\ImageMagick\Convert"
...
for %%b in (*.jpg) do convert JP2: %%b %%~nb.jp2
I tried a batch file like below but it's not working. I run the batch file in the same folder with the .jpg image files. Any help would be greatly appreciated.
===========================================
SETLOCAL EnableDelayedExpansion
SET CONVERT="%PROGRAMFILES%\ImageMagick\Convert"
...
for %%b in (*.jpg) do convert JP2: %%b %%~nb.jp2