[lug] Image conversion.

Tkil tkil at scrye.com
Sun Dec 24 15:59:12 MST 2000


>>>>> "Rob" == Rob Riggs <rob at pangalactic.org> writes:

Rob> Python? PYTHON???
Rob> Look again. That *was* a shell loop... a C shell loop. ;-)

which mailing list are *you* reading?  look at which article i was
actually responding to:

| From: Ken Kinder <ken at kenkinder.com>
| Subject: Re: [lug] Image conversion.
| To: lug at lug.boulder.co.us
| Date: Fri, 22 Dec 2000 16:26:04 -0700
| Message-ID: <20001222162604.A460 at kenkinder.com>
| References: <Pine.LNX.4.21.0012221625330.19678-100000 at localhost.localdomain>
| In-Reply-To: <Pine.LNX.4.21.0012221625330.19678-100000 at localhost.localdomain>; from jstarkey at advancecreations.com on Fri, Dec 22, 2000 at 04:28:24PM -0700
| List-Id: Boulder (Colorado) Linux Users Group -- General Mailing List <lug.lug.boulder.co.us>
| X-BeenThere: lug at lug.boulder.co.us
| 
| Imagemagick has a nifty convert program. Install it and use a simple Python
| script like:
| 
| import sys, os, string
| files = sys.argv[1:]
| 
| for file in files:
|     # filename will be w/o the extension
|     filename, extension = string.split(file, '.', 1)
|     os.system('convert %s %s.gif', file, filename)
| 
| Then just call your python script with *.bmp ;)

funny, looks like python to me.  i know someone else posted a csh
loop, but i ignored that one.

t.




More information about the LUG mailing list