Skip to content

Instantly share code, notes, and snippets.

@kingargyle
Created November 9, 2017 15:58
Show Gist options
  • Save kingargyle/6d9354d50ccbf6b4d681bb5c7ab6666b to your computer and use it in GitHub Desktop.
Save kingargyle/6d9354d50ccbf6b4d681bb5c7ab6666b to your computer and use it in GitHub Desktop.
Batch Convert Images with ImageMagic
Command line option for converting a batch of images from jpeg to png, adding a transparent background and resizing the images to 30%
of their original file size.
FOR /R %a IN (*.jpg) DO "C:\Program Files\ImageMagick-7.0.7-Q16\magick.exe" "%~a" -transparent black -adaptive-resize 28x29%\! "C:\Work\temp\%~na.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment