Recursive Mogrify Script

Another question from a newbie linux scripter. I am trying to mogrify all the files in a folder using this command

find -name "*.jpg" -exec mogrify -resize 320 -quality 75 {} \; 

The command is executed, but nothing happens.

Thanks in advance

+6
source share
2 answers

Try

 find -name "*.jpg" -print 

to see which files match; this can help diagnose if there is a problem with mogrify or with find.

+6
source

Sorry, but this was only a user error. When testing, I was not in the correct folder. The team really works.

+1
source

Source: https://habr.com/ru/post/918761/


All Articles