From neruyume at hotmail.com Fri May 4 15:33:31 2012 From: neruyume at hotmail.com (Neru Yumekui) Date: Fri, 4 May 2012 13:33:31 +0000 Subject: [Image-SIG] Image.show() --> No such file or directory/nothing happens In-Reply-To: References: , , Message-ID: I am trying to get Image.show() to work, but seem to struggle with it. Thus far I have been using PIL on Windows, and it has worked fine and all - But I recently installed it on a Linux-machine, where img.show does not seem to work (All other features apart from screengrab seems to work well).When I run the following as a normal user (id est, not root)Image.new("RGBA", (100, 100), (255, 255, 255, 0)).show()it results in these error messages in popupboxes:Failed to open "/tmp/tmpsVfqf4".Error stating file '/tmp/tmpsVfqf4': No such file or directory.Failed to execute default File Manager.Input/output error.The interpreter has the following printoutThunar: Failed to open "/tmp/tmpFs5EZr": Error stating file '/tmp/tmpFs5EZr': No such file or directoryRunning the same as root, nothing (visible) seems to happen, either via popups or in the interpreter, but no image shows up either.At first I did not have xv installed (it tried to open the image in gimp, but that did not work as it resulted in the errors above when gimp opened) - So I installed xv, and it still tried to open gimp - So I removed gimp, and that is more or less how I ended up where I am now.?I guess show() is not that important to me as I could just save the image and open it manually, but it would be helpful to have show() at times.? From edward at unicornschool.org Fri May 4 23:22:19 2012 From: edward at unicornschool.org (Edward Cannon) Date: Fri, 4 May 2012 14:22:19 -0700 Subject: [Image-SIG] Image.show() --> No such file or directory/nothing happens In-Reply-To: References: Message-ID: Image.show() is a funky beast. I am tempted to tell you to write a simple helper function to save an image to a temp location and show it using some sort of Popen command. This might be your best bet. I personally have not got Image.show() to work past windows XP. On Fri, May 4, 2012 at 6:33 AM, Neru Yumekui wrote: > > I am trying to get Image.show() to work, but seem to struggle with it. Thus far I have been using PIL on Windows, and it has worked fine and all - But I recently installed it on a Linux-machine, where img.show does not seem to work (All other features apart from screengrab seems to work well).When I run the following as a normal user (id est, not root)Image.new("RGBA", (100, 100), (255, 255, 255, 0)).show()it results in these error messages in popupboxes:Failed to open "/tmp/tmpsVfqf4".Error stating file '/tmp/tmpsVfqf4': No such file or directory.Failed to execute default File Manager.Input/output error.The interpreter has the following printoutThunar: Failed to open "/tmp/tmpFs5EZr": Error stating file '/tmp/tmpFs5EZr': No such file or directoryRunning the same as root, nothing (visible) seems to happen, either via popups or in the interpreter, but no image shows up either.At first I did not have xv installed (it tried to open the image in gimp, but that did not work as it resulted in the errors above when gimp opened) - So I installed xv, and it still tried to open gimp - So I removed gimp, and that is more or less how I ended up where I am now.?I guess show() is not that important to me as I could just save the image and open it manually, but it would be helpful to have show() at times. > _______________________________________________ > Image-SIG maillist ?- ?Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig From neruyume at hotmail.com Thu May 3 06:32:25 2012 From: neruyume at hotmail.com (Neru Yumekui) Date: Thu, 03 May 2012 04:32:25 -0000 Subject: [Image-SIG] Image.show() --> No such file or directory/nothing happens In-Reply-To: References: Message-ID: I am trying to get Image.show() to work, but seem to struggle with it. Thus far I have been using PIL on Windows, and it has worked fine and all - But I recently installed it on a Linux-machine, where .show() does not seem to work. (All other features apart from screengrab seems to work well). When I run the following as a normal user (id est, not root), Image.new("RGBA", (100, 100), (0, 255, 0, 0)).show() it results in these error messages in popupboxes: Failed to open "/tmp/tmpsVfqf4". Error stating file '/tmp/tmpsVfqf4': No such file or directory. (abouts two times) Then Failed to execute default File Manager. Input/output error. The interpreter has the following printout >>> Image.new("RGBA", (100, 100), (0, 255, 0, 0)).show() >>> Thunar: Failed to open "/tmp/tmpFs5EZr": Error stating file '/tmp/tmpFs5EZr': No such file or directory Running the same as root, nothing (visible) seems to happen, either via popups or in the interpreter, but no image shows up either. At first I did not have xv installed (it tried to open the image in gimp, but that did not work as it resulted in the errors above when gimp opened) - So I installed xv, and it still tried to open gimp - So I removed gimp, and that is more or less how I ended up where I am now. I guess show() is not that important to me as I could just save the image and open it manually, but it would be helpful to have show() at times. -------------- next part -------------- An HTML attachment was scrubbed... URL: From test3 at incomewars.net Thu May 3 17:40:53 2012 From: test3 at incomewars.net (David Schmidt) Date: Thu, 03 May 2012 15:40:53 -0000 Subject: [Image-SIG] jpeg and embedded icc profiles Message-ID: <4FA2A53C.3050902@incomewars.net> Hi, I've got some images changing their color when I open them with python. After a lot of google I found some really old emails about embedded icc profiles causing problems. The files have an Adobe (1998) profile and when I save them, all the colors get pale. Is there anything i can do? Shouldn't PIL 1.1.7 copy the profiles into the new file or is there anything I have to do? I would love to convert it into no profile, but I can't find a hint how to do this. pyCMS seems dead and on how to use littleCMS I'm unable to find anything. Sincerly David From neruyume at hotmail.com Thu May 3 22:25:32 2012 From: neruyume at hotmail.com (Neru Yumekui) Date: Thu, 03 May 2012 20:25:32 -0000 Subject: [Image-SIG] Image.show() --> No such file or directory/nothing happens In-Reply-To: References: , Message-ID: I am trying to get Image.show() to work, but seem to struggle with it. Thus far I have been using PIL on Windows, and it has worked fine and all - But I recently installed it on a Linux-machine, where img.show does not seem to work (All other features apart from screengrab seems to work well). When I run the following as a normal user (id est, not root) Image.new("RGBA", (100, 100), (255, 255, 255, 0)).show() it results in these error messages in popupboxes: Failed to open "/tmp/tmpsVfqf4". Error stating file '/tmp/tmpsVfqf4': No such file or directory. Failed to execute default File Manager. Input/output error. The interpreter has the following printout Thunar: Failed to open "/tmp/tmpFs5EZr": Error stating file '/tmp/tmpFs5EZr': No such file or directory Running the same as root, nothing (visible) seems to happen, either via popups or in the interpreter, but no image shows up either. At first I did not have xv installed (it tried to open the image in gimp, but that did not work as it resulted in the errors above when gimp opened) - So I installed xv, and it still tried to open gimp - So I removed gimp, and that is more or less how I ended up where I am now. I guess show() is not that important to me as I could just save the image and open it manually, but it would be helpful to have show() at times. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ok14052004 at yahoo.com Fri May 11 05:24:55 2012 From: ok14052004 at yahoo.com (Olga) Date: Fri, 11 May 2012 03:24:55 -0000 Subject: [Image-SIG] problem with the library installation Message-ID: <1336706533.51196.YahooMailNeo@web39306.mail.mud.yahoo.com> Hello, I'm trying to install Python Imaging Library and having troubles with graphic libraries linking on a run time. After the installation I have: PIL 1.1.7SETUP SUMMARY -------------------------------------------------------------------- version ? ? ? 1.1.7 platform ? ? ?linux2 2.7.3(default,May102012,13:17:15) ? ? ? ? ? ? ? [GCC 4.4.620110731(RedHat4.4.6-3)] -------------------------------------------------------------------- ***TKINTER support notavailable ---JPEG support available ---ZLIB (PNG/ZIP)support available ***FREETYPE2 support notavailable ***LITTLECMS support notavailable -------------------------------------------------------------------- So, it looks like there is support of JPEG and ZLIB libraries However, python selftest.py returns: PIL 1.1.7TEST SUMMARY -------------------------------------------------------------------- Pythonmodules loaded from./PIL Binarymodules loaded from./PIL -------------------------------------------------------------------- ---PIL CORE support ok ***TKINTER support notinstalled ***JPEG support notinstalled ***ZLIB (PNG/ZIP)support notinstalled ***FREETYPE2 support notinstalled ***LITTLECMS support notinstalled -------------------------------------------------------------------- Why the libraries can't be linked in a run time? Thanks, Olga -------------- next part -------------- An HTML attachment was scrubbed... URL: From lolinzhang at live.cn Fri May 11 12:09:08 2012 From: lolinzhang at live.cn (=?GB2312?B?1cXavM7E?=) Date: Fri, 11 May 2012 10:09:08 -0000 Subject: [Image-SIG] selftest fails, but package shows status is fine Message-ID: I install pil on mac os 10.6.4 I try setup.py build_ext -i, get this: --- TKINTER support available --- JPEG support available --- ZLIB (PNG/ZIP) support available --- FREETYPE2 support available --- LITTLECMS support available but when run the selftest.py, it's still: --- PIL CORE support ok --- TKINTER support ok --- JPEG support ok --- ZLIB (PNG/ZIP) support ok * FREETYPE2 support not installed * LITTLECMS support not installed Could you help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From webcoach101 at gmail.com Sun May 13 04:35:00 2012 From: webcoach101 at gmail.com (Doug Snyder) Date: Sun, 13 May 2012 02:35:00 -0000 Subject: [Image-SIG] Getting .png support on Ubuntu 12 using a virtualenv python installation Message-ID: Hi I'm attempting to get .png support for PIL and have read the README and some instructions on how to install PIL here The directions show how change the JPG_ROOT and ZLIB_ROOT to point to the installations of these libs I'm running the python setup.py build_ext -i command with my virtualenv activated When I run selftest.py I get the jpeg support working but not zlib/png support: --- PIL CORE support ok *** TKINTER support not installed --- JPEG support ok *** ZLIB (PNG/ZIP) support not installed *** FREETYPE2 support not installed *** LITTLECMS support not installed I've checked my system through the package manager and zlib1g and zlib1g-dev are installed they are instaled at: "usr/include/": /usr/include/zconf.h /usr/include/zlib.h /usr/include/zlibdefs.h so I have used "/usr/include" as the ZLIB_ROOT but when I clean setup.py and run $ sudo python setup.py build_ext -i again it still fails for png support It seems to me like pointing the setup.py script to these files should work but I'm not sure this exactly how it does work Does anybody know what I might be doing wrong? thanx Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From sontek at gmail.com Sun May 13 23:11:53 2012 From: sontek at gmail.com (John Anderson) Date: Sun, 13 May 2012 21:11:53 -0000 Subject: [Image-SIG] PIL and multiprocessing module Message-ID: I was wondering if anyone has used PIL with the multiprocessing module. I would like to do some pixel by pixel translations using the .load() function and shared memory with the multiprocessing module. This is the code I have so far: def convert_to_gs_load(surf): width, height = surf.size pix = surf.load() for x in range(width): for y in range(height): alpha = 1 red, green, blue = pix[x, y] average = (red + green + blue) // 3 gs_color = (average, average, average, alpha) pix[x, y] = gs_color def convert_to_gs_load_mp(surf): width, height = surf.size pix = surf.load() t1 = multiprocessing.Process(target=gs_load, args=(pix, width, 0, height / 4)) t2 = multiprocessing.Process(target=gs_load, args=(pix, width, height / 4, height / 2)) t3 = multiprocessing.Process(target=gs_load, args=(pix, width, height / 2, 3 * height / 4)) t4 = multiprocessing.Process(target=gs_load, args=(pix, width, 3 * height / 4, height)) threads = [t1, t2, t3, t4] for thread in threads: thread.start() for thread in threads: thread.join() The problem is the 'pix' object is not in shared memory, so this doesn't work. Is there a way I could use Value or Array to store the object? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dxqianwei at 163.com Mon May 21 09:55:59 2012 From: dxqianwei at 163.com (dxqianwei) Date: Mon, 21 May 2012 07:55:59 -0000 Subject: [Image-SIG] PIL--Img Message-ID: <618d13c8.c93b.1376e48e30a.Coremail.dxqianwei@163.com> Hello!, I am Mr. Wang. I want to know if the PIL can process the format '.img' ? The format of many images is '.img'. Thanks very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: