[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using convert to batch convert



> The command I would expect to work:
> 
> convert -sample 50% *

Another method that I often use is:

    $ find ./ -name '*.gif' -exec convert -geometry 50% {} {}.png \;

The {}'s are replaced by the filenames that 'find' found, one at a time.
So this command would reduce the size of all GIF images in the current
(and all sub-) directories, as well as convert them to PNG files.

Chris
-- 
Christopher S. Swingley         930 Koyukuk Drive
System / Network Manager        University of Alaska Fairbanks
IARC -- Frontier Program        Fairbanks, AK 99775

phone: 907-474-2689             fax: 907-474-2643
email: cswingle@iarc.uaf.edu    GNUPG and PGP2 keys at my web site
  web: http://www.frontier.iarc.uaf.edu/~cswingle

Attachment: pgp9JDjXRiBcX.pgp
Description: PGP signature


Reply to: