| Subject: | Re: help - executing a pipeline from find - exec |
|---|---|
| From: | Mike Civil |
| Date: | Sun, 3 Jan 2010 16:24:10 +0000 |
| Newsgroups: | uk.comp.os.linux |
>I thought I could use find:
>find . -maxdepth 1 -name '*.jpg' -exec 'djpeg {} | \
>cjpeg -qual 25 > small/{}' \;
You need to play around with execing a shell with args (or simpler put
your commands in a shell script and call that in exec with the filename
as the argument), however in the the best Usenet tradition could I
suggest using mogrify (part of ImageMagick) to alter the files in place,
eg using your find :-
find . -maxdepth 1 -name '*.jpg' -exec mogrify -quality 25 {} +
The + will cause find to run each mogrify with as many files as possible.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | help - executing a pipeline from find - exec, Tony van der Hoff |
|---|---|
| Next by Date: | Re: help - executing a pipeline from find - exec, Tony van der Hoff |
| Previous by Thread: | help - executing a pipeline from find - exec, Tony van der Hoff |
| Next by Thread: | Re: help - executing a pipeline from find - exec, Tony van der Hoff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |