From lists at theflorys.org Thu Sep 2 02:07:04 2010 From: lists at theflorys.org (David) Date: Wed, 01 Sep 2010 20:07:04 -0400 Subject: [Image-SIG] IOError "decoder jpeg not available" on Win7 Message-ID: <4C7EEAA8.2040000@theflorys.org> I am running Python 2.6 on a new Win7 machine. Installed PIL from the PIL-1.1.7.win32-py2.6.exe binary. I am trying to resize a jpg. I get the IOError message "decoder jpeg not available" when I call the save() method: im = Image.open(infile) im = im.resize(newsize,Image.ANTIALIAS) im.save(outfile, "JPEG", quality=90) I have scanned a year of back messages on this list without seeing any relevant advice. I have used PIL with the same code on other Win32 machines without problems. Help or advice would be appreciated. David Flory From spe.stani.be at gmail.com Thu Sep 2 11:51:07 2010 From: spe.stani.be at gmail.com (Stani) Date: Thu, 2 Sep 2010 11:51:07 +0200 Subject: [Image-SIG] Paste with alpha not working correctly In-Reply-To: <4C7AB320.4030602@online.de> References: <4C795049.6090204@online.de> <4C7A9BE8.7020404@online.de> <4C7AB320.4030602@online.de> Message-ID: On Sun, Aug 29, 2010 at 9:21 PM, Helge wrote: > Hello Jerome, > > Jerome Leclanche schrieb: >> >> I believe I've run into that issue before when creating composited >> images. I fixed it with the following hack in libImaging/Paste.c:135 @ >> paste_mask_RGBA >> Replaced the for loop with the following: > > Glad to read that there is a solution. > Sadly I have no possibility to compile the C part. Is there a workaround in > python only? (Slowness is no problem.) You might try this paste function which I developed for Phatch: http://bazaar.launchpad.net/~stani/phatch/trunk/annotate/head%3A/phatch/lib/imtools.py#L679 Best regards, Stani -- Phatch Photo Batch Processor - http://photobatch.stani.be SPE Python IDE - http://pythonide.stani.be From image-sig at online.de Sun Sep 5 18:04:03 2010 From: image-sig at online.de (Helge) Date: Sun, 05 Sep 2010 18:04:03 +0200 Subject: [Image-SIG] Paste with alpha not working correctly In-Reply-To: References: <4C795049.6090204@online.de> <4C7A9BE8.7020404@online.de> <4C7AB320.4030602@online.de> Message-ID: <4C83BF73.8080505@online.de> Hello Stani, Stani schrieb: > You might try this paste function which I developed for Phatch: > http://bazaar.launchpad.net/~stani/phatch/trunk/annotate/head%3A/phatch/lib/imtools.py#L679 Thank you, this works as I expected from the original paste function. I've updated the example with the method of your code: ... And I keep your Phatch tool in mind if I want to batch process my images :-) Best Regards, Helge From lists at theflorys.org Wed Sep 8 22:08:47 2010 From: lists at theflorys.org (David) Date: Wed, 08 Sep 2010 16:08:47 -0400 Subject: [Image-SIG] IOError "decoder jpeg not available" on Win7 (2nd try) Message-ID: <4C87ED4F.1060704@theflorys.org> I sent this to the list a week ago with no result. 2nd try. I am running Python 2.6 on a new Win7 machine. I have installed PIL from the PIL-1.1.7.win32-py2.6.exe binary. I am trying to resize a jpg. I get the IOError message "decoder jpeg not available" when I call the save() method: im = Image.open(infile) im = im.resize(newsize,Image.ANTIALIAS) im.save(outfile, "JPEG", quality=90) I have scanned a year of back messages on this list without seeing any relevant advice. I have used PIL with the same code on other Win32 machines without problems. Since it is a prebuild binary, the jpeg decoder should be present. Help or advice would be appreciated. David Flory From cannon.el at gmail.com Thu Sep 9 00:04:45 2010 From: cannon.el at gmail.com (Edward Cannon) Date: Wed, 8 Sep 2010 15:04:45 -0700 Subject: [Image-SIG] IOError "decoder jpeg not available" on Win7 (2nd try) In-Reply-To: <4C87ED4F.1060704@theflorys.org> References: <4C87ED4F.1060704@theflorys.org> Message-ID: That seems weird. I have win7 and python 2.6 and do not have any problems. Maybe a clean install will help. Edward Cannon Unicorn School On Sep 8, 2010, at 1:08 PM, David wrote: > I sent this to the list a week ago with no result. 2nd try. > > I am running Python 2.6 on a new Win7 machine. I have installed PIL > from the PIL-1.1.7.win32-py2.6.exe binary. I am trying to resize a > jpg. I get the IOError message "decoder jpeg not available" when I > call the save() method: > > im = Image.open(infile) > im = im.resize(newsize,Image.ANTIALIAS) > im.save(outfile, "JPEG", quality=90) > > I have scanned a year of back messages on this list without seeing > any relevant advice. I have used PIL with the same code on other > Win32 machines without problems. Since it is a prebuild binary, the > jpeg decoder should be present. > > Help or advice would be appreciated. > > David Flory > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig From joao.lopes at textendo.com Mon Sep 6 14:00:23 2010 From: joao.lopes at textendo.com (Joao Lopes) Date: Mon, 6 Sep 2010 14:00:23 +0200 Subject: [Image-SIG] Bug report: Open image from a StringIO Message-ID: When opening a image from a StringIO the StringIO position pointer is not reseted. There should be a call to seek(0,0) before starting loading the image from the StringIO. I can provide a patch if needed. Thanks JC Lopes From t.wood07 at imperial.ac.uk Wed Sep 8 17:01:03 2010 From: t.wood07 at imperial.ac.uk (Wood, Tobias) Date: Wed, 8 Sep 2010 16:01:03 +0100 Subject: [Image-SIG] PNG sBITs Message-ID: Hello, Does PIL currently support the sBIT chunk for PNGs? I am having exactly the same issues as described in this post from 3 years ago - http://old.nabble.com/Does-PIL-support-the-sBIT-chunk-in-PNG-files--td14109569.html#a14109569 - and couldn't find a response. I've had a cursory look through PngImagePlugin.py and couldn't find a mention either. If PIL doesn't support it, is there at least a way to query whether it is set via PIL? I haven't found a way in any of the Image class methods yet. Thanks for any help, Toby Wood From seb.haase at gmail.com Thu Sep 9 10:05:58 2010 From: seb.haase at gmail.com (Sebastian Haase) Date: Thu, 9 Sep 2010 10:05:58 +0200 Subject: [Image-SIG] Bug report: Open image from a StringIO In-Reply-To: References: Message-ID: On Mon, Sep 6, 2010 at 2:00 PM, Joao Lopes wrote: > When opening a image from a StringIO the StringIO position pointer is > not reseted. There should be a call to seek(0,0) before starting > loading the image from the StringIO. > > I can provide a patch if needed. > > Thanks > JC Lopes I don't think this is really a good idea - I would not expect a seek(0) when reading from an open file object either. - Sebastian Haase PS: Why is the default reply here on IMAGE-SIG NOT to the list ... that might be a reason why there are so many questions without (public) answers .... ???? From Chris.Barker at noaa.gov Thu Sep 9 19:08:24 2010 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Thu, 09 Sep 2010 10:08:24 -0700 Subject: [Image-SIG] Bug report: Open image from a StringIO In-Reply-To: References: Message-ID: <4C891488.8020508@noaa.gov> On 9/9/10 1:05 AM, Sebastian Haase wrote: > Why is the default reply here on IMAGE-SIG NOT to the list ... that > might be a reason why there are so many questions without (public) > answers .... ???? Because there are a lot of folks that think lists should be set up that way -- it's a trade off between the likelihood of accidentally sending a private note to the list vs. accidentally sending a list note to an individual. Personally, I far prefer lists that default to replying to the list, but I'm apparently in a minority. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From seb.haase at gmail.com Fri Sep 10 09:30:33 2010 From: seb.haase at gmail.com (Sebastian Haase) Date: Fri, 10 Sep 2010 09:30:33 +0200 Subject: [Image-SIG] Bug report: Open image from a StringIO In-Reply-To: <4C891488.8020508@noaa.gov> References: <4C891488.8020508@noaa.gov> Message-ID: On Thu, Sep 9, 2010 at 7:08 PM, Christopher Barker wrote: > On 9/9/10 1:05 AM, Sebastian Haase wrote: > >> Why is the default reply here on IMAGE-SIG ? NOT to the list ... that >> might be a reason why there are so many ?questions without (public) >> answers .... ???? > > Because there are a lot of folks that think lists should be set up that way > -- it's a trade off between the likelihood of accidentally sending a private > note to the list vs. accidentally sending a list note to an individual. > > Personally, I far prefer lists that default to replying to the list, but I'm > apparently in a minority. > Hi Chris. thanks for your reply. I remember having had the same discussion on another list (moinmoin wiki). Just to say again, that you are not alone: Why wouldn't everyone agree, that things that start on a list, would / should by default also stay on the list. >From my experience, this list (and the moinmoin list for that matter) are just not much to follow, maybe one reason simply being this "stupid" default-reply setting.... Cheers, Sebastian From yury at shurup.com Fri Sep 10 09:23:35 2010 From: yury at shurup.com (Yury V. Zaytsev) Date: Fri, 10 Sep 2010 09:23:35 +0200 Subject: [Image-SIG] Bug report: Open image from a StringIO In-Reply-To: <4C891488.8020508@noaa.gov> References: <4C891488.8020508@noaa.gov> Message-ID: <1284103415.6927.5.camel@mypride> On Thu, 2010-09-09 at 10:08 -0700, Christopher Barker wrote: > Personally, I far prefer lists that default to replying to the list, but > I'm apparently in a minority. Not quite. I had to teach myself to use Reply To All exactly for the same reason ;-( -- Sincerely yours, Yury V. Zaytsev From mydomdom at gmail.com Mon Sep 13 19:39:57 2010 From: mydomdom at gmail.com (Dom Dom) Date: Mon, 13 Sep 2010 19:39:57 +0200 Subject: [Image-SIG] Can't split data stream for an ip camera Message-ID: Hello, I want to display with wxPython the images sent by an ip camera. Getting the photos is not a problem: page = urllib2.build_opener().open("http://192.168.1.3/Jpeg/CamImg.jpg ") image = Image.open(cStringIO.StringIO(page.read())) Then I display the images one by one with wx with a loop (4 to 8 Frames Per Second, which is not quick enough). But it works well. What I'd like to do is to display the frames in a continous mode, ie 'movie'. The problem is that I can't manage to analyze the stream sent by the camera whose address is: 'http://192.168.1.3/GetData.cgi ' I tried to adapt the script mentioned here (http://thread.gmane.org/gmane.comp.python.general/449768 ) without success. See below. My problem is that I don't know where to begin and where to stop the extraction of data (the stream of data is continous): See the class below: boundary = self.buffer.find(r"""--IPCamBoundary""") begin = boundary + 43 end = self.buffer.rfind(r"""--IPCamBoundary""") I'd appreciate that some help to understand what I should do. Many thanks in advance for four help Dominique -------------------------------------------------------------------------- Below is some info that may be needed with a view to helping me: >>> stream = urllib2.urlopen('http://192.168.1.3/GetData.cgi ') >>> print stream.info () Date: Sat, 01 Feb 2003 05:30:42 GMT Server: WYM/1.0 Connection: close Content-Type: multipart/x-mixed-replace;boundary=IPCamBoundary Last-Modified: Sat, 01 Feb 2003 05:30:42 GMT Pragma: no-cache Cache-Control: no-cache Expires: 01 Jan 1970 00:00:00 GMT >>> stream.readline() '--IPCamBoundary\r\n' >>> stream.readline() 'Content-Type: image/jpeg\r\n' >>> stream.readline() '\r\n' >>> stream.readline() '\xff\xd8\xff\xe2\x00\x06>;?b\xff\xe7\x00\x04\x00\x00\xff\xdb\x00C\x00\x04\x03\x03\x04\x03\x03\x04\x04\x04\x04\x05\x05\x04\x05\x06\n' >>> and so on. I tried to attach the code returned by the camera (with two "--IPCamBoundary\r\n", which seem to be the begining of a frame.) but it was rejected by the image-sig list... ------------------------------------------------------------------------------- Script: class myCamera(object): def __init__(self, url = 'http://192.168.1.3/GetData.cgi ', param = None): self.url = url self.param = param self.state = 0 self.buffer = '' self.limit = 8092 def Start(self): try: self.fp = urllib2.build_opener().open(self.url) except URLError: print u"""Check connection""" self.state = True def Stop(self): self.fp.close() self.state = 0 def NextFrame(self): if self.state: temp = self.fp.read(self.limit) self.buffer += temp boundary = self.buffer.find(r"""--IPCamBoundary""") count = self.buffer.count(r"""--IPCamBoundary""") if boundary <> -1: if count > 1: begin = boundary + 43 end = self.buffer.rfind(r"""--IPCamBoundary""") buff = self.buffer[boundary:end-1] output = cStringIO.StringIO() output.write(buff) contents = output.getvalue() image = Image.open(cStringIO.StringIO(contents)) output.close() This script results in a traceback: image = Image.open(cStringIO.StringIO(contents)) File "D:\Python26\lib\site-packages\PIL\Image.py", line 1980, in open raise IOError("cannot identify image file") IOError: cannot identify image file -------------- next part -------------- An HTML attachment was scrubbed... URL: From majoris.ursae at yahoo.co.uk Tue Sep 14 05:55:22 2010 From: majoris.ursae at yahoo.co.uk (majoris.ursae at yahoo.co.uk) Date: Tue, 14 Sep 2010 12:55:22 +0900 Subject: [Image-SIG] Stereoscopic analysis Message-ID: Hello everybody, I would be grateful if someone give me some hints on how to extract average height from two overlapping aerial photographs preferably in Python environment. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewwilson at alum.mit.edu Tue Sep 14 12:55:16 2010 From: andrewwilson at alum.mit.edu (Andrew Wilson) Date: Tue, 14 Sep 2010 06:55:16 -0400 Subject: [Image-SIG] Stereoscopic analysis In-Reply-To: References: Message-ID: Hello, Take a look at OpenCV, it has python bindings and can perform some form or 3D reconstruction from multiple images: http://opencv.willowgarage.com/documentation/python/camera_calibration_and_3d_reconstruction.html Andrew On Mon, Sep 13, 2010 at 11:55 PM, wrote: > Hello everybody, > I would be grateful if someone give me some hints on how to extract average > height from two overlapping aerial photographs preferably in Python > environment. > Thank you! > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cannon.el at gmail.com Fri Sep 24 20:00:11 2010 From: cannon.el at gmail.com (Edward Cannon) Date: Fri, 24 Sep 2010 11:00:11 -0700 Subject: [Image-SIG] IOError "decoder jpeg not available" on Win7 (2nd try) In-Reply-To: <4C9CB951.1080905@theflorys.org> References: <4C87ED4F.1060704@theflorys.org> <4C9CB951.1080905@theflorys.org> Message-ID: <4C9CE72B.8010704@gmail.com> the only things I can think of is writing a script that opens a jpeg and trying that or maybe trying 1.1.6 instead of 1.1.7. I personally don't use the pilconvert script, that might be the problem On 9/24/2010 7:44 AM, David wrote: > On 9/8/2010 6:04 PM, Edward Cannon wrote: >> That seems weird. I have win7 and python 2.6 and do not have any >> problems. Maybe a clean install will help. >> Edward Cannon >> Unicorn School >> >> >> >> On Sep 8, 2010, at 1:08 PM, David wrote: >> >>> I sent this to the list a week ago with no result. 2nd try. >>> >>> I am running Python 2.6 on a new Win7 machine. I have installed PIL >>> from the PIL-1.1.7.win32-py2.6.exe binary. I am trying to resize a >>> jpg. I get the IOError message "decoder jpeg not available" when I >>> call the save() method: >>> >>> im = Image.open(infile) >>> im = im.resize(newsize,Image.ANTIALIAS) >>> im.save(outfile, "JPEG", quality=90) >>> >>> I have scanned a year of back messages on this list without seeing any >>> relevant advice. I have used PIL with the same code on other Win32 >>> machines without problems. Since it is a prebuild binary, the jpeg >>> decoder should be present. >>> >>> Help or advice would be appreciated. >>> >>> David Flory >>> _______________________________________________ >>> Image-SIG maillist - Image-SIG at python.org >>> http://mail.python.org/mailman/listinfo/image-sig >> > I just did a clean install of PIL 1.1.7 from the Win32 binary. I still > get an error message when I run pyconvert. Here is my command: > > C:\Users\David\Pictures\test>pilconvert test.jpg test.png > cannot convert image (:decoder jpeg not > available) > > What file contains the "decoder jpeg" and how might I find it? > > David From lists at theflorys.org Mon Sep 27 03:38:35 2010 From: lists at theflorys.org (David) Date: Sun, 26 Sep 2010 21:38:35 -0400 Subject: [Image-SIG] IOError "decoder jpeg not available" on Win7 (2nd try) In-Reply-To: <4C9CE72B.8010704@gmail.com> References: <4C87ED4F.1060704@theflorys.org> <4C9CB951.1080905@theflorys.org> <4C9CE72B.8010704@gmail.com> Message-ID: <4C9FF59B.5090303@theflorys.org> On 9/24/2010 2:00 PM, Edward Cannon wrote: > the only things I can think of is writing a script that opens a jpeg and > trying that or maybe trying 1.1.6 instead of 1.1.7. I personally don't > use the pilconvert script, that might be the problem > On 9/24/2010 7:44 AM, David wrote: >> On 9/8/2010 6:04 PM, Edward Cannon wrote: >>> That seems weird. I have win7 and python 2.6 and do not have any >>> problems. Maybe a clean install will help. >>> Edward Cannon >>> Unicorn School >>> >>> >>> >>> On Sep 8, 2010, at 1:08 PM, David wrote: >>> >>>> I sent this to the list a week ago with no result. 2nd try. >>>> >>>> I am running Python 2.6 on a new Win7 machine. I have installed PIL >>>> from the PIL-1.1.7.win32-py2.6.exe binary. I am trying to resize a >>>> jpg. I get the IOError message "decoder jpeg not available" when I >>>> call the save() method: >>>> >>>> im = Image.open(infile) >>>> im = im.resize(newsize,Image.ANTIALIAS) >>>> im.save(outfile, "JPEG", quality=90) >>>> >>>> I have scanned a year of back messages on this list without seeing any >>>> relevant advice. I have used PIL with the same code on other Win32 >>>> machines without problems. Since it is a prebuild binary, the jpeg >>>> decoder should be present. >>>> >>>> Help or advice would be appreciated. >>>> >>>> David Flory >>>> _______________________________________________ >>>> Image-SIG maillist - Image-SIG at python.org >>>> http://mail.python.org/mailman/listinfo/image-sig >>> >> I just did a clean install of PIL 1.1.7 from the Win32 binary. I still >> get an error message when I run pyconvert. Here is my command: >> >> C:\Users\David\Pictures\test>pilconvert test.jpg test.png >> cannot convert image (:decoder jpeg not >> available) >> >> What file contains the "decoder jpeg" and how might I find it? >> >> David > I solved the problem on my third "re-install PIL" The problem was that on Win7 the installation puts a copy in my C:\Python26\Lib\site-packages\PIL directory BUT (the kicker) I had a second installation in my C:\Users\David\AppData\Roaming\Python\Python26\site-packages that also had to be deleted before doing the reinstall. The second one may come from PyPM. I am not sure but deleting it solved the problem. Thanks to all for the suggestions. David From don at donvest.org Tue Sep 28 01:43:16 2010 From: don at donvest.org (Donald Price) Date: Mon, 27 Sep 2010 19:43:16 -0400 Subject: [Image-SIG] 64 bit _imaging.so Message-ID: <201009271943.16147.don@donvest.org> I am now running opensuse 11.3 on an HP computer with i7-860 processor. Have loaded python 2.6.5 and it works fine except for PIL. I can import PIL, Image, and ImageDraw. But when I import ImageFont or try to use Image I get the error "The _imaging C module is not installed". It seems that the PIL I downloaded is a 32 bit version and I need a 64 bit version. Can you help me? Many thanks. Don From chuck.lloyd at gmail.com Fri Sep 17 17:28:24 2010 From: chuck.lloyd at gmail.com (Chuck Lloyd) Date: Fri, 17 Sep 2010 11:28:24 -0400 Subject: [Image-SIG] Problem with 16 bit scaling and drawing, and workaround Message-ID: I'm working with 16bit gray-scale images but I'm having some problems with drawing and higher order interpolation. Nearest-neighbor interpolation works fine, but anything else corrupt the image. I'm using version 1.1.7 on win32 that comes with Python(x,y). If I convert the images to mode "I" (32bit int) and then back to "I;16" it seems to work fine. I looked through libImaging for the interpolation code. It looks like it is off by half in the width, uUsing a 32bit stride rather than 16 bit stride. I don't have time right now to learn the codebase and make the fix but maybe someone more familiar, more motivated or with more time can. The code below shows the problem and workaround. ---------------------------------------------------------- import Image, ImageDraw def draw_doodle( img ): draw = ImageDraw.Draw(img) (width,height) = img.size width = width - 1 height = height -1 draw.line( (0, 0, width, height ), fill="#FFFFFF") draw.line( (width, 0, 0, height ), fill="#CCCCCC") draw.line( (0, height/2, width, height/2), fill="#888888") # Make a blank tiff file = r'dummy.tif' blank = Image.new("I;16", (80,123)) blank.save( file ) # Draw on image im16 = Image.open( file ) draw_doodle( im16 ) print im16 im16.show() #Scale it im16s = im16.resize((80,126), Image.BILINEAR ) im16s.show() # Now do it after converting to I type im16 = Image.open( file ) im32 = im16.convert("I") draw_doodle( im32 ) print im32 im32.show() #Scale it im32s = im32.resize((80,126), Image.BILINEAR ) im = im32s.convert("I;16") print im im.show() Chuck -------------- next part -------------- An HTML attachment was scrubbed... URL: From majoris.ursae at yahoo.co.uk Sun Sep 19 12:19:10 2010 From: majoris.ursae at yahoo.co.uk (majoris.ursae at yahoo.co.uk) Date: Sun, 19 Sep 2010 19:19:10 +0900 Subject: [Image-SIG] Digital Number Message-ID: Hello Everybody, How to read pixel wise Digital Number (DN) of a JPG image using PIL? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjngrj2010 at gmail.com Wed Sep 22 07:24:26 2010 From: rjngrj2010 at gmail.com (Rajan Gurjar) Date: Wed, 22 Sep 2010 01:24:26 -0400 Subject: [Image-SIG] Hi I have problems with tif files Message-ID: <1285133066.4135.5.camel@rajan-laptop> Image.open('filename') and im.info gives the following (640, 480) {'resolution': (1, 1), 'compression': 'raw'} F;32BF TIFF But when I run the im.show() it gives the following error. >>> im.show() Traceback (most recent call last): File "", line 1, in im.show() File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1483, in show _show(self, title=title, command=command) File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 2123, in _show apply(_showxv, (image,), options) File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 2127, in _showxv apply(ImageShow.show, (image, title), options) File "/usr/lib/python2.6/dist-packages/PIL/ImageShow.py", line 41, in show if viewer.show(image, title=title, **options): File "/usr/lib/python2.6/dist-packages/PIL/ImageShow.py", line 62, in show base = Image.getmodebase(image.mode) File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 245, in getmodebase return ImageMode.getmode(mode).basemode File "/usr/lib/python2.6/dist-packages/PIL/ImageMode.py", line 50, in getmode return _modes[mode] KeyError: 'F;32BF' I have no idea why this happens. I will appreciate your response. The file opens with ImageJ and ImageMagick. It is a 8-bit RGB file. I have looked up Google and came across few similar queries but do not find any resolution other than suggestions to link xv to ImageMagick. Because the solutions are old i.e., dated in 2007, I am not sure if this is a fix. Please help. Thanks, Rajan -------------- next part -------------- A non-text attachment was scrubbed... Name: 092010_triangle_2.tif Type: image/tiff Size: 1228978 bytes Desc: not available URL: From majoris.ursae at yahoo.co.uk Fri Sep 24 03:32:10 2010 From: majoris.ursae at yahoo.co.uk (majoris.ursae at yahoo.co.uk) Date: Fri, 24 Sep 2010 10:32:10 +0900 Subject: [Image-SIG] PIL code not working Message-ID: Hello everybody, Greetings! In PIL, the following codes does not work anymore: im.getpixel(5,7) list(im.getdata()) Does anyone knows what is wrong below and kindly suggest new codes? >>> from PIL import Image >>> im = Image.open('E://test.jpg') >>> im.load() >>> im.getpixel (5,7) Traceback (most recent call last): File "", line 1, in im.getpixel(4,6) TypeError: getpixel() takes exactly 2 arguments (3 given) >>> list(im.getdata()) no response for one day! Thank you so much!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From dino at phidev.org Sat Sep 25 23:42:13 2010 From: dino at phidev.org (Florian Ludwig) Date: Sat, 25 Sep 2010 23:42:13 +0200 Subject: [Image-SIG] misleading error when using negative floats Message-ID: <1285450933.5821.13.camel@snowball> Hi, img.paste accepts positive floats with an deprecation warning but not negative floats. The following exception is thrown: File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1101, in paste self.im.paste(im, box, mask.im) ValueError: images do not match I got two wishes :) - be more consistent (for example working negative floats with a deprecation warning?) - throw a more descriptive error It cost me some hours as I was investigating in the wrong direction as I thought the image was wrong, not the positioning. Thank you, Florian -- Florian Ludwig -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part URL: