From aclark at aclark.net Fri Jun 14 11:43:32 2013 From: aclark at aclark.net (Alex Clark) Date: Fri, 14 Jun 2013 09:43:32 +0000 (UTC) Subject: [Image-SIG] =?utf-8?q?=22import_=5Fimaging=22_breakage_coming_in_?= =?utf-8?q?Pillow_2=2E1=2E0?= Message-ID: Hi all, Pillow 2.1.0 will be released in 2 weeks, at which point "import _imaging" will fail. Instead, please use "from PIL import Image.core as _imaging": - https://github.com/python-imaging/Pillow/issues/249 Please help us get the word out about this important change. Thank you! Alex From elliotperlman at cox.net Sat Jun 1 18:06:33 2013 From: elliotperlman at cox.net (Elliot Perlman) Date: Sat, 01 Jun 2013 16:06:33 -0000 Subject: [Image-SIG] problem loading Python PIL module Message-ID: <001201ce5edc$1f0bb4c0$5d231e40$@net> Hi, I have a Python program which worked successfully on several PCs using version 2.2 and showed videos using the PIL module version 1.1.5 . (All the rest works but the videos.) When I try to install the downloaded PIL module on my current laptop PC, I get the error message "Could not create key". I now have an Acer, Windows 7, 64-bit with Norton security. I tried turning off the firewall, but this did not help. Can anyone help me out? Thanks! Elliot Perlman -------------- next part -------------- An HTML attachment was scrubbed... URL: From OTrapp at dow.com Wed Jun 5 15:34:33 2013 From: OTrapp at dow.com (Trapp, Ollie (O)) Date: Wed, 05 Jun 2013 13:34:33 -0000 Subject: [Image-SIG] Issue when installing PIL 1.1.7 for Python 2.6 Message-ID: <2C62360C9591964F97F56553481E9C680488489B@046-CH1MPN1-061.046d.mgd.msft.net> Hello, I have an issue installing PIL 1.1.7. Python 2.6 is already installed and runs. When I run the installer for PIL, I get to the tab that says "Ready to Install", but when I hit next the window freezes. I've never made it past this frame. Is there a certain setting I have wrong, or have I installed something in the wrong place? I changed python's install location from its default in C: to C:\Program Files\Python 2.6. Any help would be greatly appreciated! -Ollie Trapp -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattl at gnu.org Wed Jun 5 20:56:26 2013 From: mattl at gnu.org (Matt Lee) Date: Wed, 05 Jun 2013 18:56:26 -0000 Subject: [Image-SIG] Bug fix for PIL 1.1.7 on Debian x64 Message-ID: PIL is unable to find essential libraries such as libjpeg on a modern Debian/Ubuntu system. This fixes that by adding multiarch support to the list of possible locations for system libraries. setup.py 215,218d214 < if os.uname: < arch = os.uname()[-1] < add_directory(library_dirs, "/usr/lib/" + arch + "-linux-gnu") < Best, matt From samuel.thibault at ens-lyon.org Thu Jun 6 16:23:18 2013 From: samuel.thibault at ens-lyon.org (Samuel Thibault) Date: Thu, 06 Jun 2013 14:23:18 -0000 Subject: [Image-SIG] Image.show not working on windows 7 Message-ID: <20130606142310.GA17643@type.bordeaux.inria.fr> Hello, Image.show is not working on windows 7 because the /wait option of start does not work any more, as detailed on http://stackoverflow.com/questions/8932976/python-imaging-library-show-on-windows http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html http://stackoverflow.com/questions/4607633/image-format-to-save-in-python/4608010#4608010 I just wanted to make sure you maintainers are aware of the issue and eventually publish a fixed version? Samuel From gohanman at gmail.com Thu Jun 13 21:09:29 2013 From: gohanman at gmail.com (Andy Theuninck) Date: Thu, 13 Jun 2013 14:09:29 -0500 Subject: [Image-SIG] IOError: unknown freetype error - occurs with large amounts of text Message-ID: I have a method that takes a list of strings, a width, and a height and draws them using PIL. For small to medium lists this works perfectly. For large lists it crashes with this rather opaque exception: Traceback (most recent call last): File "square-code.py", line 252, in obj.main(sys.argv[1:]) File "square-code.py", line 98, in main self.render(lines, self.width, self.height) File "square-code.py", line 109, in render draw.text((x,y),line,font=font,fill=(0,0,0)) File "/usr/lib64/python2.6/site-packages/PIL/ImageDraw.py", line 263, in text mask, offset = font.getmask2(text, self.fontmode) File "/usr/lib64/python2.6/site-packages/PIL/ImageFont.py", line 151, in getmask2 self.font.render(text, im.id, mode=="1") IOError: unknown freetype error I've tried a couple different fonts and that doesn't make much difference. Image size also doesn't appear to matter. For example, with a 2600x2000 image if I write ~250 lines with ~650 characters each it works fine (font size 6). If I try to write ~950 lines with ~1300 characters each (font size 2) I get the crash above. I'd appreciate any insight into what might be going wrong, things I can do differently, or how to debug the problem. My method looks like this: def render(self, lines, width, height): im = Image.new('RGB',(width,height),(0xff,0xff,0xff)) draw = ImageDraw.Draw(im) font = self.get_font(self.font_size) x = 0 y = 0 for line in lines: draw.text((x,y),line,font=font,fill=(0,0,0)) y += font.getsize(line)[1] if os.path.splitext(self.ofile)[1] == '': self.ofile += ".png" im.save(self.ofile) Python 2.6, PIL 1.1.7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Susan.Conway at open.ac.uk Tue Jun 18 15:58:56 2013 From: Susan.Conway at open.ac.uk (Susan.Conway) Date: Tue, 18 Jun 2013 14:58:56 +0100 Subject: [Image-SIG] mapproxy1.5.0 and PIL problem on windows64 Python2.7 Message-ID: <9932A16F9CE9264FAC3F2E0E008E122107C484A020@KIELDERCMS1.open.ac.uk> Hello, I am a new user of mapproxy and am a novice python programmer. I successfully installed mapproxy and realised that I needed to install PIL separately (having searched around this seemed to be a common problem). First I tried the pillow install here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ which did not work, so then I tried the PIL install (even though it was not for the correct version of python). Then I tried the pillow install here: https://pypi.python.org/packages/2.7/P/Pillow/ All of these produce the same warning: 'PIL is not available' when I call mapproxy-util --version. As suggested in the documentation I am running under a virtual environment. Has anyone else had this problem, or could suggest how to solve it. Thanks! Susan -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). From amore28168 at yahoo.com Fri Jun 21 16:31:24 2013 From: amore28168 at yahoo.com (Romina A. Enriquez) Date: Fri, 21 Jun 2013 22:31:24 +0800 Subject: [Image-SIG] Writing EXIF in JPEGs Message-ID: <2F7B8AE9-E877-4C09-8AA6-887879880CA3@yahoo.com> Sent from my iPhone From sugi30 at dolphin.ocn.ne.jp Sun Jun 23 08:06:01 2013 From: sugi30 at dolphin.ocn.ne.jp (sugi) Date: Sun, 23 Jun 2013 15:06:01 +0900 Subject: [Image-SIG] PIL1.1.7 Install Message-ID: <7B2DE31EF6CB467482345DB9B4826C61@sugi> Dear Sirs, Python 2.7 was installed on Win8 64bit. When PIL 1.1.7 for Python 2.7 on Win8 was installed, it showed the following error message, "Python version 2.7 required, which was not found in the registry". Then Setup window appeared with black fields and no input was accepted. How can I install PIL 1.1.7 on Python 2.7 on Win8 64bit? I amusing PIL 1.1.7 on Python 2.7 on XP now. Best regards, Sugi -------------- next part -------------- An HTML attachment was scrubbed... URL: From toddmklein at gmail.com Wed Jun 26 17:27:45 2013 From: toddmklein at gmail.com (toddmklein at gmail.com) Date: Wed, 26 Jun 2013 09:27:45 -0600 Subject: [Image-SIG] help Message-ID: Dear Image Sig support- I would like to download PIL from either PythonWare or Effbot (may point to same download I guess). I don't have any previous experience with PIL, but I am surprised that I just see "404 Not Found" when I click the links from a Google search. Yesterday I think I also saw a "Bad Gateway" message. Please let me know if the apparent server issue can be fixed. Best regards Todd From adriangugyin at gmail.com Wed Jun 26 23:03:21 2013 From: adriangugyin at gmail.com (=?ISO-8859-1?Q?Gugyin_Adri=E1n?=) Date: Wed, 26 Jun 2013 23:03:21 +0200 Subject: [Image-SIG] Problem Installing PIL for Python 2.7 In-Reply-To: <1358872701.1820.YahooMailRC@web181304.mail.ne1.yahoo.com> References: <1358872701.1820.YahooMailRC@web181304.mail.ne1.yahoo.com> Message-ID: Hello! The method described here worked for me: http://stackoverflow.com/questions/3652625/installing-setuptools-on-64-bit-windows Apparently (having faced related 64- and 32-bit issues on OS X) there is a bug > in the Windows installer . I stumbled > across this workaround, > which might help - basically, you create your own registry value > HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.6\InstallPath and > copy over the InstallPath value from > HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\InstallPath. See the > answer below for more details. > If you do this, beware that setuptools *may only install 32-bit libraries* > . I have 64-bit Windows and Python and encountered the same problem when installing PIL (it also comes up with other module installers), created the registry key, set the value and after that the installer worked. Unfortunately it seems one has to sacrifice the 64-bit libraries for this (I'm not really into that yet). Adrian 2013/1/22 John Price > Help needed. I am having problems trying to install PIL for Python 2.7. > I get a dialog box that states that 2.7 in not registered. I use Windows 7 > as my computer operating system. I also have Python 3.3 installed. Could > that be the problem? > > Thanks for your help, > > John > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > > -------------- next part -------------- An HTML attachment was scrubbed... URL: