Created
August 14, 2017 13:24
-
-
Save peterdalle/5a1cd544c5818a0ce2e72fc1de267e75 to your computer and use it in GitHub Desktop.
Batch file that uses magick batch conversion of images: compress & resize
This file contains hidden or 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 | |
REM Resize to 30 % and compress to 65 all JPG files in current directory into new names. | |
for %%f in (*.jpg) do ( | |
echo %%f - %%~nf-new.jpg | |
magick "%%f" -quality 65 -resize 30%% "%%~nf-new.jpg" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment