2
1
I thought there was a simple switch in mogrify
command options that tells it go through subfolders as well. I didn't find any. On Linux, the "find
" command seems to do the trick, how do you do this on Windows?
magick mogrify -resample 72 -resize 700x700 -format png -path "C:\ImageMagick-7.0.8-Q16\dest" *.*
works but I need it to recurse through subfolders as well. What's the simplest way to do that?
Ideally, I'm looking for the source directory structure to be retained in destination but with the processed images only.
Works like a charm. Thanks! I do need to be able to delete the original files as they're very large tiffs and I do not want them in the output. I can make copies of the original folder structure so no need for the script to create a new folder structure for the output, it could be an inplace overwrite. – Regmi – 2018-07-13T21:13:41.913
Will do! One more thing. If I add a switch like -profile "sRGB.icc", do I need to escape it in the command because of the quotes I'm using? example: for /r "C:\ImageMagick-7.0.8-Q16\source" %a in (.) do magick mogrify -profile "sRGB.icc" -resample 72 -resize 700x700 -format png "%~a" – Regmi – 2018-07-13T21:48:07.617
I figured it, no worries. the command is perfectly correct, it looks like adding the profile to PNG is an issue. – Regmi – 2018-07-13T21:53:01.907