Recursive Mogrify Script [closed]
Question
Another question from a newbie linux scripter. I'm trying to batch mogrify all the files in a folder using this command
find -name "*.jpg" -exec mogrify -resize 320 -quality 75 {} \;
The command runs but nothing seems to happen.
Thanks in advance
Solution
Try
find -name "*.jpg" -print
to see what files match; this may help diagnose if the problem is with mogrify or with find.
OTHER TIPS
Sorry all but this was just user error. I was not in the correct folder when testing. The command actually does work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow