Image Magick Recursive Folder

Description

This script has been made because i had over 200gb of HD jpeg on my File Server.
Most of these pic are used for quality check of Aviation part.
I was able to reduce Jpeg of about 3mb to 150k with out losing too much.
Link to program: http://www.imagemagick.org/script/index.php

About the Author

Source Code

Important Note:
This script has not been checked by Spiceworks. Please understand the risks before using it.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

REM resize to fit in a box 1024x768
REM resize to max width 800px, keeping aspect ratio, reducing quality to 80
REM The pushd command saves the current working directory in memory so it can be returned to at any time
Rem Pushd is a predefined command alias for the Push-Location cmdlet and popd is a predefined
REM command alias for the Pop-Location cmdlet.
rem @echo off
:main
pushd \\<server path>
for /R %%U in (*.jpg) do mogrify -resize 1024x768 -quality 80 "%%U"
popd
goto :eof
:: DONE