Re: PIL & image size reduction script

2006-03-27 Thread Philippe Martin
Many thanks nikie wrote: > Philippe Martin wrote: >> PS: where can I find those extra parameters in the doc (ex: quality) ... >> I must be blind. > In the http://www.pythonware.com/library/pil/handbook/formats.htm page. > Look in the "JPEG" section. Different file formats support different > opt

Re: PIL & image size reduction script

2006-03-27 Thread nikie
Philippe Martin wrote: > PS: where can I find those extra parameters in the doc (ex: quality) ... I > must be blind. In the http://www.pythonware.com/library/pil/handbook/formats.htm page. Look in the "JPEG" section. Different file formats support different options. -- http://mail.python.org/mail

Re: PIL & image size reduction script

2006-03-27 Thread Philippe Martin
PS: where can I find those extra parameters in the doc (ex: quality) ... I must be blind. Philippe nikie wrote: > Philippe Martin wrote: >> Hi, >> >> Thanks to the NG, I got the script hereunder working. >> >> 1) I am not certain that the call to convert does much (checking the doc) > > I thi

Re: PIL & image size reduction script

2006-03-27 Thread Philippe Martin
nikie wrote: > Philippe Martin wrote: >> Hi, >> >> Thanks to the NG, I got the script hereunder working. >> >> 1) I am not certain that the call to convert does much (checking the doc) > > I think you only need it if your source image comes in a format that > can't be stored into a jpeg file (e.g

Re: PIL & image size reduction script

2006-03-26 Thread nikie
Philippe Martin wrote: > Hi, > > Thanks to the NG, I got the script hereunder working. > > 1) I am not certain that the call to convert does much (checking the doc) I think you only need it if your source image comes in a format that can't be stored into a jpeg file (e.g. 8-bit paletted). You'll n

PIL & image size reduction script

2006-03-26 Thread Philippe Martin
Hi, Thanks to the NG, I got the script hereunder working. 1) I am not certain that the call to convert does much (checking the doc) 2) Can this be improved as far as the final image size in (X,Y) ? For instance, passing a large .jpg with a target byte size of 7000, I get final (X,Y) results aro