Re: [Image-SIG] Place image into MySQL db.

2005-12-18 Thread S. D. Rose
Sorry! Thank you for your help -Dave "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "S. D. Rose" wrote: > >> I think I should have been a little more specific. I have a process that >> takes a bunch of photos and stores them 'as taken' in .JPG format. /.../ >>

Re: [Image-SIG] Place image into MySQL db.

2005-12-18 Thread Fredrik Lundh
"S. D. Rose" wrote: > I think I should have been a little more specific. I have a process that > takes a bunch of photos and stores them 'as taken' in .JPG format. /.../ > I guess I could img.save(file, 'jpg') and then read the file and then insert > it, but that seems to be a particularly in-ele

Re: [Image-SIG] Place image into MySQL db.

2005-12-18 Thread S. D. Rose
I think I should have been a little more specific. I have a process that takes a bunch of photos and stores them 'as taken' in .JPG format. I read them from the database like this: >>> cur.execute("select * from photosTMP") >>> result = cur.fetch() >>> for each in result: recno =

[Image-SIG] Python and ArcMap

2005-12-18 Thread MATATA EMMANUEL
Hi there? I'm very new in python and I would like to know how I can write python scripts in ArcMap. Where do i write the code and how do I write? Supposed that I need to select in a layer feature satisfying certain conditions? How will write this in python to run in ArcMap? Thanks. ___

[Image-SIG] mismatch version

2005-12-18 Thread Matthew Lange
Sent from wrong account before (apologies):   Received this warning about mismatch version when trying to install PIL., wondering how to fix:   -bash-2.05b$ /usr/local/python2.3/bin/python selftest.py PIL/Image.py:52: RuntimeWarning: Python C API version mismatch for module _imaging: T

Re: [Image-SIG] Place image into MySQL db.

2005-12-18 Thread Fredrik Lundh
"S. D. Rose" wrote: > I have a question about PIL. > > I get a 50k photo from a MySQL table, convert it to grey-scale, do some > rotations, etc. Then I want to put it back. It seems that after I do the > greyscale, it converts from 'JPEG' to 'RAW'. Can anyone tell me how I > convert the image b