Search code examples
linuxmogrify

Recursive Mogrify Script


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.