Windows 10. ImageMagick v7.1.0-62
I need to compress and optimise a lot of .jpg images using ImageMagick. I am using the following command, which is working (this overwrites the original files which is what I want).
I run this in the windows command line when in the required folder (e.g. folder 1)
magick morgify -gaussian-blur 0.05 -colorspace RGB -strip -quality 50 -interlace Plane *.jpg
The issue is this command only handles a single folder at a time. how can I change this so it runs recursively from my root folder through all sub folders.
My file structure is below;
- images
- - folder 1
- - - folder 1a
- - - folder 1b
- - folder 2
- - folder 3
- - - folder 3a
- - - folder 3b