Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recursive Mogrify Script [closed]

Tags:

linux

mogrify

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

like image 276
Michael Farah Avatar asked Jun 22 '12 13:06

Michael Farah


2 Answers

Sorry all but this was just user error. I was not in the correct folder when testing. The command actually does work.

like image 22
Michael Farah Avatar answered Oct 15 '22 13:10

Michael Farah


Try

find -name "*.jpg" -print

to see what files match; this may help diagnose if the problem is with mogrify or with find.

like image 74
Joel Spolsky Avatar answered Oct 15 '22 12:10

Joel Spolsky