The first question is will PIL do this trick?
And the second is, OK what am I doing wrong?
I've installed PIL-1.1.5-py2.3-macosx10.3 on my IMac running OS 10.3.7 and Python 2.3 (#1, Sep 13 2003, 00:49:11).
I adapted the following test from the PDF version of the handbook _ PIL 1.1.3 | March 12, 2002 | Fredrik Lundh, Matthew Ellis.
I run the script with Python-Launcher 2.3.
#!/usr/bin/python import os, sys import Image infile='/text/data/1055.eps' outfile = "/text/1055.pdf" if infile != outfile: try: im = Image.open(infile) print infile, im.format, "%dx%d" % im.size, im.mode im.thumbnail((15, 15)) im.save(outfile, "PDF") except IOError: print 'Cannot create ' +outfile+' thumbnail for', infile
I've tried JPEG, BMP, PDF, etc as output types and get the same message.
P120:~ billmac$ "/usr/bin/python" "/text/PIL_test.py" && echo Exit status: $? && exit 1
/text/data/1055.eps EPS 70x71 L
Cannot create /text/1055.pdf thumbnail for /text/data/1055.eps
Exit status: 0
logout
[Process exited - exit code 1]
It's seeing the file, but can't create the export.
What am I missing?
Thanks,
Bill
Bill MacKenzie Special Projects Antelope Valley Press [EMAIL PROTECTED]
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig