Brian Jackson on wrote... | On Wednesday 26 December 2007 06:24, Vedran Vucic wrote: | > Hello, | > | > I want to do massive mogrify actions on large hard disk with | > many subfolders. | > I have to do that in Windows XP. | > How can I do that recursively so one command can perform mogrify in all | > subfolders- | > | > Advice for Linux is welcome too. | IM Examples, Basics, Mogrify, is highly recomended reading...
http://imagemagick.org/Usage/basics/#mogrify | Assuming there's NOTHING but images in the directories.... | find [directory] -type f | xargs mogrify [mogrify options] | You can expand that to match a specific file format find [directory] -type f -name '*.gif' | xargs mogrify ... Or better still if you have a modern UNIX like system use... find ..as previous.. -print0 | xargs -0 ..as previous.. This changes the pipeline output of file to be 'null' (or zero character code) seperated filenames, which will work properly for unusual filenames like files with spaces, newlines, or other weird meta-characters. WARNING WARNING WARNING..... "mogrify", and all other IM commands will also expand a filename containing shell meta-characters such as '*' and '?'. This is done to allow the use of these meta-characters on the old DOS command line shell. However this could cause a bug, repeated mogrify exectution, or posibly even a 'hack' from a some evil source. Caution is advised. Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- Bilbo had heard tell and sing of dragon-hoards before, but the splender, the lust, the glory of such treasure has never come home to him. -- JRR Tolkein, ``The Hobbit'' ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
