Re: Pil image module, "mode" bug..

2007-10-08 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > On Oct 7, 8:17 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: >> On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: >> > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: >> >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: >> >> > Hi.. >> >> > I find the p

Re: Pil image module, "mode" bug..

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 7, 8:17 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: > On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: > > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: > >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: > >> > Hi.. > >> > I find the picture color with: > >> > im=Imag

Re: Pil image module, "mode" bug..

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: >> > Hi.. >> > I find the picture color with: >> > im=Image.open("/%s" %name) >> > color=im.mode #p=black & beyaz rgb=color L=

Re: Pil image module, "mode" bug..

2007-10-07 Thread Abandoned
On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: > On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: > > Hi.. > > I find the picture color with: > > im=Image.open("/%s" %name) > > color=im.mode #p=black & beyaz rgb=color L=grey > > > This usually work true but in these pictures: > >h

Re: Pil image module, "mode" bug..

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: > Hi.. > I find the picture color with: > im=Image.open("/%s" %name) > color=im.mode #p=black & beyaz rgb=color L=grey > > This usually work true but in these pictures: > http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif > http://malatya.me

Pil image module, "mode" bug..

2007-10-07 Thread Abandoned
Hi.. I find the picture color with: im=Image.open("/%s" %name) color=im.mode #p=black & beyaz rgb=color L=grey This usually work true but in these pictures: http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif http://malatya.meb.gov.tr/images/meb.gif Say me P (black&white) but these pictures are

Re: 16bit RGB with Image module

2007-03-27 Thread Will McGugan
Jason B wrote: > Well I kept screwing around and funny thing, this works: > > import sys, Image > > if len(sys.argv) == 2: > print "\nReading: "+sys.argv[1] > image_file = open(sys.argv[1], "rb") > pixel_data = image_file.read() > > im = Image.fromstring("RGB", (326, 325), pixel_data, "ra

Re: 16bit RGB with Image module

2007-03-27 Thread Jason B
Well I kept screwing around and funny thing, this works: import sys, Image if len(sys.argv) == 2: print "\nReading: "+sys.argv[1] image_file = open(sys.argv[1], "rb") pixel_data = image_file.read() im = Image.fromstring("RGB", (326, 325), pixel_data, "raw", "BGR;16") im.show() Although I

16bit RGB with Image module

2007-03-27 Thread Jason B
Hi all, I'm still new to all of this, but I'm trying to do something here that *seems* like it should be pretty simple. All I want to do is take an array of pixel data from a file (no header data or anything, just pixel data) in RGB565 format and save it off to a bitmap file - or display it, i

Re: How to save High Quality JPG image by setting Image module from PIL

2006-09-25 Thread Fredrik Lundh
Daniel Mark wrote: > I am using Image module from PIL to save created image as JPG format. > > Is there any option I could set for function Image.save so that the > stored image will have the highest quality. something like im.save(filename, quality=90) should do the trick.

How to save High Quality JPG image by setting Image module from PIL

2006-09-25 Thread Daniel Mark
hello all: I am using Image module from PIL to save created image as JPG format. Is there any option I could set for function Image.save so that the stored image will have the highest quality. Thank you -Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Image Module

2005-04-13 Thread Terry Hancock
On Tuesday 12 April 2005 06:01 pm, Nicholas S. Graham wrote: > I want to convert a field of 4:2:2 digital video data into a viewable > format (.jpg or something) using the Image module. Any suggestions?? I'll assume that by "Image" module, you mean Python Imaging Library.

Image Module

2005-04-12 Thread Nicholas S. Graham
I want to convert a field of 4:2:2 digital video data into a viewable format (.jpg or something) using the Image module. Any suggestions?? NG -- http://mail.python.org/mailman/listinfo/python-list