Skip to content

Instantly share code, notes, and snippets.

@solaris9000
Created June 11, 2019 19:50
Show Gist options
  • Save solaris9000/d32352e64a4e471f58594c28e9c4af8b to your computer and use it in GitHub Desktop.
Save solaris9000/d32352e64a4e471f58594c28e9c4af8b to your computer and use it in GitHub Desktop.
Using ImageMagik to resize photos
Using ImageMagik to resize photos
---------------------------------
Pre-Reqs
--------
Imagemagick is installed and in the system PATH
https://www.imagemagick.org/
Procedure
---------
To resize to 70% of orig on all files current folder and put the new files in a sub-folder called "small"
mogrify.exe -path small -resize 70% *.JPG
The above will work in powershell or cmd or git bash. Please note if using bash that filenames ARE case sensitive ie JPG vs jpg matters!
OR
mogrify.exe -path small -resize 70% -qaulity 80% *.JPG
This will change quality to 80%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment