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 =

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

[Image-SIG] Place image into MySQL db.

2005-12-16 Thread S. D. Rose
(Sorry - I accidentally posted to General Python...) 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