Carl Karsten on wrote...
| 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.
| >
|
| Use the find command, which is installed on most Linux and has been ported to
| win: http://unxutils.sourceforge.net - dl link:
| http://sourceforge.net/project/showfiles.php?group_id=9328
|
| to get you started, you are going to want something like this:
|
| find /start/dir -name "*.png" -exec mogrify -stuff {} \;
|
Note that the -exec option for "find" will run the given command
(up to the \; option) once for each and every filename that passes the
given criteria. For mogrify this is a waste, you may as well run
"convert" and get access to more options.
Remember "convert" can read and right to the same filename without
problems as it always read the whole image in, before processing and
opening the output file.
Also watch out for meta-charcaters in the filenames that your are
processing. EG: '*', '?', quotes, and even spaces, newlines, control
charcaters, not to mention UFT-8 international characters!!!!
If you do want to use "mogrify" to process multiple files in one command,
then use "xargs" on the normal output of "find", or better still the
"-print0" option of "find".
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
`` Never laugh at live dragons, Bilbo you fool! ''
-- 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