[Image-SIG] need to covert from gif to jpeg

Vaskin Kissoyan vkissoyan@dc.usweb.com
Thu, 10 Dec 1998 17:00:16 -0500


using the 1.4 version of the compiled python with tk and pil

This is not working! help!


import os, sys
import Image
import glob

for infile in glob.glob("*.gif"):
	outfile = os.path.splitext(infile)[0] + ".jpg"
	if infile != outfile:
		try:
			im = Image.open(infile)
			print im.format, "%dx%d" % im.size, im.mode
			im.save(outfile, ")
		except IOError:
			print "cannot convert", infile





VASKIN H KISSOYAN
Senior Architect, USWeb DC
-----------------------------------------------------------
USWeb Corporation    http://www.usweb.com/
7220 Wisconsin Ave, Suite 300
Bethesda, MD  20814
ph: 301.652.5250 x 298 

A Strategic Partner for the Information Age