Re: ImageMaker batch resizing

From: Lance Levsen <lance_at_no.spam.please>
Date: Sun Feb 11 2007 - 20:58:23 CST

jimw wagner wrote:
> /Desktop/Babylonian-Assyrian texts/signlist/1-49signlist_files$ ${i}.gif
> ${i}_resize.gif; do$> for i in `ls *.gif | awk -F. '{print $1}'`; do
> convert -resize 25%
>
> JimW

Hey Jim,

You're missing half of the shell script. When I said one line, I meant
that the whole thing had to be on one line. Here it is again with '\' at
the end of the lines to indicate continuation and with the rm to remove
the original files.

Oh, one thing too, it's contingent on the fact that the file names only
have one '.' in them separating the name from the extension.

-----------
for i in `ls *.gif | awk -F. '{print $1}'`; do \
 convert -resize 25% ${i}.gif ${i}_resize.gif; \
 rm -f ${i}.gif; \
done
-----------

Hope that helps.
lance

-- 
Lance Levsen,
Catprint Computing
Tel:  (306) 493-2249
Cell: (306) 230-8783
Blog: http://www.catprint.ca/blog/
SaskBlogs: http://saskblogs.catprint.ca/

Received on Sun Feb 11 20:58:43 2007

This archive was generated by hypermail 2.1.8 : Sun Feb 11 2007 - 20:58:49 CST