From ednoyce at gmail.com Thu May 9 19:16:51 2013 From: ednoyce at gmail.com (Edwin Noyce) Date: Thu, 09 May 2013 17:16:51 -0000 Subject: [Image-SIG] Problem with draw.text Message-ID: My program reads a std text file, (.txt) separates the words using nltk then sends them to a PNG file using draw.text. my problem is that quotation marks and apostrophies do not print correctly but print a strange glyph instead. When I go through the file and replace these chharacters with the apostrophy from the keyboard everything works correctly. Is there a font that I can use which will include these characters? -------------- next part -------------- An HTML attachment was scrubbed... URL: From amol.kulkarni at mindteck.com Wed May 15 16:43:16 2013 From: amol.kulkarni at mindteck.com (Amol B Kulkarni (India - Bangalore)) Date: Wed, 15 May 2013 14:43:16 -0000 Subject: [Image-SIG] cross compile PIL Message-ID: Hi, I want to cross compile the PIL (Imaging-1.1.7)from my ubuntu 12.04 host machine for the target arm11. my host machine is : x86 ubuntu 12.04 target is : freescale i.mx35(arm 11) I untared the Imaging-1.1.7 by downloading from python.org and from Imaging-1.1.7 directory I ran the command $python setup.py build_ext -i when I ran this I get many many errors. so please guide me on this Warm Regards, Amol B Kulkarni Technical Lead, Product Engineering Services Mindteck | Prestige Atlanta, No 10, Industrial Layout, 7th Main, 80 Feet Road, 3rd Block, Koramangala, Bangalore 560 034, India. Email: amol.kulkarni at mindteck.com | Tel: +91 80 4154 8000; Ext.8174 | Fax: +91 80 4112 5813 | www.mindteck.com ______________________________________________________________________ This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bcwhite at pobox.com Thu May 16 05:14:41 2013 From: bcwhite at pobox.com (Brian White) Date: Thu, 16 May 2013 03:14:41 -0000 Subject: [Image-SIG] 64-bit PIL for Windows Message-ID: Hi! Just wondering if there was a 64-bit compilation of PIL for Windows? I have AMD64 Python2.7 and it won't load the 32-bit C _imaging DLL. Brian bcwhite at pobox.com ------------------------------------------------------------------------------------------ *Treat someone as they are and they will remain that way. Treat someone as they can be and they will become that way.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From philshipman at gmail.com Fri May 24 05:24:47 2013 From: philshipman at gmail.com (Phil Shipman) Date: Fri, 24 May 2013 03:24:47 -0000 Subject: [Image-SIG] How to get TrueType support working? Message-ID: I need TrueType support for a program that uses PIL. I installed Python fresh to my new laptop, then PIL, but it said no support for TrueType. I did a clean, then modified setup.py and pointed it at /usr/lib/girepository-1.0/freetype2-2.0.typelib, but got a syntax error when I ran the script again. So I compiled freetype2 from source, hoping it would be installed into a directory that setup.py would find. Did a clean, then ran setup.py, "no support" for truetype. What's next? Running Ubuntu 12.04 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dilshnqtdsg at gmail.com Mon May 27 12:06:20 2013 From: dilshnqtdsg at gmail.com (Dilll) Date: Mon, 27 May 2013 10:06:20 -0000 Subject: [Image-SIG] Python Imaging Library for Windows Mobile Message-ID: <51a33014.4349320a.0d6f.ffff9c2b@mx.google.com> An HTML attachment was scrubbed... URL: From feroze.dawood at gmail.com Thu May 30 02:55:50 2013 From: feroze.dawood at gmail.com (feroze dawood) Date: Thu, 30 May 2013 00:55:50 -0000 Subject: [Image-SIG] Unable to read V5 bitmap files Message-ID: Hi! I have a bitmap file written by new versions of windows. These files seem to have the BITMAPV5HEADER header, as documented in this wikipedia article... http://en.wikipedia.org/wiki/BMP_file_format The image metadata is as follows... -- sh:~/home/user$ identify -verbose badbmp.bmpImage: badbmp.bmp Format: BMP (Microsoft Windows bitmap image) Class: DirectClass Geometry: 940x705+0+0 Units: PixelsPerCentimeter Type: TrueColorMatte Endianess: Undefined Colorspace: RGB Depth: 8-bit Channel depth: red: 8-bit green: 8-bit blue: 8-bit alpha: 1-bit Channel statistics: Red: min: 7 (0.027451) max: 255 (1) mean: 82.3111 (0.322788) standard deviation: 42.3517 (0.166085) kurtosis: 9.21784 skewness: 2.94025 Green: min: 7 (0.027451) max: 255 (1) mean: 80.6959 (0.316454) standard deviation: 43.208 (0.169443) kurtosis: 8.72161 skewness: 2.84078 Blue: min: 5 (0.0196078) max: 255 (1) mean: 76.912 (0.301616) standard deviation: 45.1296 (0.176979) kurtosis: 7.82117 skewness: 2.6619 Alpha: min: 255 (1) max: 255 (1) mean: 255 (1) standard deviation: 0 (0) kurtosis: 0 skewness: 0 Image statistics: Overall: min: 5 (0.0196078) max: 255 (1) mean: 123.73 (0.485215) standard deviation: 84.6884 (0.332111) kurtosis: -1.16829 skewness: 0.805031 Alpha: rgba(52,52,52,0) #34343400 Rendering intent: Undefined Chromaticity: red primary: (-nan,-nan) green primary: (-nan,-nan) blue primary: (-nan,-nan) white point: (0,0) Interlace: None Background color: white Border color: rgba(223,223,223,1) Matte color: grey74 Transparent color: none Compose: Over Page geometry: 940x705+0+0 Dispose: Undefined Iterations: 0 Compression: Undefined Orientation: Undefined Properties: date:create: 2013-05-29T13:41:17-07:00 date:modify: 2013-05-29T13:41:17-07:00 signature: 06a0f3720396f746fa94ee4918f3150c9bd4931ff21e9bed66d8202b4824e215 Artifacts: verbose: true Tainted: False Filesize: 2.651MB Number pixels: 663KB Pixels per second: 66.27MB User time: 0.010u Elapsed time: 0:01.010 Version: ImageMagick 6.6.0-4 2012-08-17 Q16 http://www.imagemagick.org -- My code: -- imageBytes = Nonewith open(fileName, 'rb') as f: imageBytes = f.read() rawImage = Image.open(StringIO.StringIO(imageBytes)) -- This is what I get when I run it... File "/home/user/__init__.py", line 149, in convert_file_adv rawImage = Image.open(StringIO.StringIO(imageBytes)) File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1965, in open return factory(fp, filename) File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line 91, in __init__ self._open() File "/usr/lib/python2.7/dist-packages/PIL/BmpImagePlugin.py", line 170, in _open self._bitmap(offset=offset) File "/usr/lib/python2.7/dist-packages/PIL/BmpImagePlugin.py", line 102, in _bitmap raise IOError("Unsupported BMP header type (%d)" % len(s))IOError: Unsupported BMP header type (124) -- Can someone tell how to get PIL to read these files? FYI I am using PIL==1.1.7 on linux. A lot of our customers have these files, so I have to find a workaround for them. Thanks, feroze. -------------- next part -------------- An HTML attachment was scrubbed... URL: