Re: [Image-SIG] installing PIL from source kit for Python 2.6.1

2009-01-31 Thread Fredrik Lundh
PIL's using Python's standard installation framework (distutils), and that installer requires Python to be registered (that is, linked to by the appropriate entries in the registry) for the installer to be able to figure out which Python versions you have on the machine, and where they are. If you

Re: [Image-SIG] installing PIL from source kit for Python 2.6.1

2009-01-31 Thread Fredrik Lundh
I suspect he's referring to the distutils installer (which is a part of standard Python), not the signing procedure. (the installer is signed, iirc). On Sat, Jan 31, 2009 at 1:17 AM, Christopher Barker wrote: > Andrew MacGinitie wrote: >> >> another question: why does the PIL installer for win

Re: [Image-SIG] installing PIL from source kit for Python 2.6.1

2009-01-31 Thread Fredrik Lundh
On Sat, Jan 31, 2009 at 12:51 AM, Andrew MacGinitie wrote: > ...can it be done? There's an installer for Python 2.6 available from here: http://effbot.org/downloads/#pil which seem to indicate that it can be done. If you insist on building it yourself, see the "Build instructions (all pla

Re: [Image-SIG] Converting images to palette mode

2009-01-31 Thread Lukas Orsin
Thanks for syntax advices ;) The version with del(image) clause seems to be more successful. Unfortunatelly it can“t still run to the end. Program crashed at 37 % of processing with 98 MB allocated memory. I am using PIL in 1.1.6 version. Unfortunatelly we can't test that batch in Linux, just in Wi

[Image-SIG] Windows PIL installer question

2009-01-31 Thread charlie
Is there any way to run the *PIL* installer from the command line on Windows in 'silent' mode, without displaying the install screens or requiring any user interaction? I figured out how to do this with MSIs (the Python installer) and with installers created with Inno setup (use innounp), but can'

[Image-SIG] installation error of PIL1.1.6

2009-01-31 Thread Hwang, Youngha,Ph.D.
Hi, could someone explain to me what the following error means? Thanks, Youngha. building '_imagingtk' extension creating build/temp.linux-i686-2.5/Tk gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/programs/l/

[Image-SIG] Problem with converting GeoTIFF to Numpy array (ValueError: unrecognised mode)

2009-01-31 Thread Hani Zahiri
Hi I am trying to read a GeoTIFF and convert it to a Numpy array. Though, I am able to open the image with no problem, however I am keep getting 'ValueError: unrecognised mode' anytime I try to use any methods from PIL's classes. My lines and results are like this: >>import Numpy >>from PIL i

[Image-SIG] Image Search at Xyggy

2009-01-31 Thread Dinesh B Vadhia
Hi! This group might be interested in what we are doing at Xyggy (www.xyggy.com), a Bay Area search startup that is building item-based search services as well as an online platform for developers. We have started to showcase the technology with 5 demos including image search which allows you

Re: [Image-SIG] Problem with converting GeoTIFF to Numpy array (ValueError: unrecognised mode)

2009-01-31 Thread Fredrik Lundh
PIL have only limited support for the "I;16" modules; try converting the image to mode "I" before you pass it on to NumPy. 2009/1/31 Hani Zahiri : > Hi > > I am trying to read a GeoTIFF and convert it to a Numpy array. Though, I am > able to open the image with no problem, however I am keep gett

Re: [Image-SIG] installation error of PIL1.1.6

2009-01-31 Thread Fredrik Lundh
You're missing the Tcl/Tk developer files; see e.g. http://mail.python.org/pipermail/image-sig/2008-December/005308.html "This probably means that you have enough of Tcl/Tk installed for the installation process to think it's worth building the Tkinter support, but, as Karsten points out,

Re: [Image-SIG] Windows PIL installer question

2009-01-31 Thread Fredrik Lundh
Hint: C:\>unzip -v \effbot.org\downloads\PIL-1.1.5.win32-py2.5.exe Archive: /effbot.org/downloads/PIL-1.1.5.win32-py2.5.exe warning [/effbot.org/downloads/PIL-1.1.5.win32-py2.5.exe]: 62010 extra bytes at beginning or within zipfile (attempting to process anyway) Length MethodSize Ratio

[Image-SIG] New member and question about colorspace query in PythonMagick

2009-01-31 Thread David Berthelot
Hi, I've been using PIL for a while, and I mostly use it as front-end to numpy, doing some image processing using all the elaborate math tools available in numpy. However I found out that PIL sometimes doesn't produce the correct output for some JPEG files (for examples 4 channel JPEG), however