Skip to content

Instantly share code, notes, and snippets.

@peterdalle
Created August 14, 2017 13:24
Show Gist options
  • Save peterdalle/5a1cd544c5818a0ce2e72fc1de267e75 to your computer and use it in GitHub Desktop.
Save peterdalle/5a1cd544c5818a0ce2e72fc1de267e75 to your computer and use it in GitHub Desktop.
Batch file that uses magick batch conversion of images: compress & resize
@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