[Image-SIG] help

2013-07-05 Thread toddmklein
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

[Image-SIG] help needed on PIL

2013-06-25 Thread Alok Nayak
I asked this question on stack overflow, Can somebody confirm the answers (theories) or direct towards answer: http://stackoverflow.com/questions/15906368/how-does-imagefilter-in-pil-normalize-the-pixel-values-between-0-and-255-after-f -- Alok Nayak ___

[Image-SIG] help: how to add words on a image

2012-10-30 Thread feng liao
Hi there: I have a need to add words to a image, just a watermark considering the image maybe black or white, so it's not good to to define the font color of the watermark, what i want is to add a shadow to the words, set the background of the font to white and the shadow to black. I explore

Re: [Image-SIG] Help for to do a script

2012-03-27 Thread Alec Bennett
There's a lot wrong with it. I don't have the modules so I can't test, but you need to chnage these two lines: if (data[0][i][j] > 199.5 and (data[0][i][j] < 200.5 count = count + 1; To something like: if data[0][i][j] > 199.5 and data[0][i][j] < 20

Re: [Image-SIG] Help for to do a script

2012-03-19 Thread Chris Barker
1) please don't multi-post like this -- this is really a "tutor" question. i.e. your problem is very basic python On Fri, Mar 16, 2012 at 11:52 AM, Boris Vladimir Comi wrote: > I detect a class of atmospheric phenomena known as Mesoscale Convective > Systems (MCS). To accomplish this, I have a da

Re: [Image-SIG] Help for to do a script

2012-03-17 Thread donn
On 16/03/2012 20:52, Boris Vladimir Comi wrote: if (data[0][i][j]> 199.5 and (data[0][i][j]< 200.5 count = count + 1; Looks like the if command does not close properly. It needs a brackets and a colon. Also, you don't need to use semi-colons, at all. HTH

[Image-SIG] Help for to do a script

2012-03-16 Thread Boris Vladimir Comi
Hello, I am writing to request your help in the realization of a script. I am new to this and I'm just learning the wonderful world of python and this has made me a little difficult. Briefly I commented what I intend to do: I detect a class of atmospheric phenomena known as Mesoscale Convectiv

Re: [Image-SIG] Help installing PIL

2011-09-17 Thread Charlie Clark
Am 17.09.2011, 09:31 Uhr, schrieb Chris Barker : That is the build for the 32 bit PPC+Intel build of python from python.org. Unless you really need 64 bit, that's the one I recommend. Alternatively, if you install MacPorts installing binary packages are as easy as: sudo port install py27-

Re: [Image-SIG] Help installing PIL

2011-09-17 Thread Chris Barker
On 9/16/11 3:23 PM, Bruce Johnson wrote: On Sep 14, 2011, at 7:45 PM, Isaac Feldman wrote: I am trying to install PIL 1.7.7 on Mac OS X 10.6 running python 2.7.2 No, it's because you don't have gcc-4.0 or at least don't have it on your $PATH. You need to have Apple's Developer Tools installe

Re: [Image-SIG] Help installing PIL

2011-09-16 Thread Bruce Johnson
On Sep 14, 2011, at 7:45 PM, Isaac Feldman wrote: > Hi, > > I am trying to install PIL 1.7.7 on Mac OS X 10.6 running python 2.7.2 > > I am getting the following error: > >> $ python setup.py build_ext -i >> running build_ext >> --- using frameworks at /System/Library/Frameworks >> building '

[Image-SIG] Help installing PIL

2011-09-16 Thread Isaac Feldman
Hi, I am trying to install PIL 1.7.7 on Mac OS X 10.6 running python 2.7.2 I am getting the following error: > $ python setup.py build_ext -i > running build_ext > --- using frameworks at /System/Library/Frameworks > building '_imaging' extension > gcc-4.0 -fno-strict-aliasing -fno-common -dyna

Re: [Image-SIG] Help

2011-08-26 Thread Mitayai
Are you installing this through packages? root@cache1:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.04 DISTRIB_CODENAME=natty DISTRIB_DESCRIPTION="Ubuntu 11.04" root@cache1:~# apt-get update [lots of output] root@cache1:~# apt-get install python-imaging Reading package lists...

[Image-SIG] help

2011-08-26 Thread AARON NICHIE
Libraries for PIL are installed but test cannot find it. Any help??? PIL 1.1.7 TEST SUMMARY Python modules loaded from ./PIL Binary modules loaded from ./PIL --

Re: [Image-SIG] Help inmstalling Python Imaging Library in mac os 10, 7

2011-08-26 Thread Mitayai
one way of getting pil and many other packages on OS 10.7 (Lion) is through mac ports. first grab xcode from the app store (free) so that you have a compiler then install mac ports from www.macports.org, open a terminal, and type: sudo port install py-pil On Thu, Aug 18, 2011 at 8:27 AM, Char

Re: [Image-SIG] Help inmstalling Python Imaging Library in mac os 10, 7

2011-08-18 Thread Charlie Clark
Am 17.08.2011, 18:38 Uhr, schrieb Mauricio Martinez : Hi I want to install the Python Imaging Library in my mac 10,7 but I have 0 skills with code and terminal, could won give me precise instructions on how to install it. Thanks for the amazon job you are doing. Dear Mauricio, assuming y

Re: [Image-SIG] Help

2011-08-18 Thread Charlie Clark
Dear Aaron, Am 17.08.2011, 14:40 Uhr, schrieb AARON NICHIE : Having a little problem adding certain support to mine PIL in Ubuntu 11.04. The test gives: --- PIL CORE support ok *** TKINTER support not installed *** JPEG support not installed *** ZLIB (PNG/ZIP) support not installed *** FREETY

Re: [Image-SIG] Help with PIL on 64 bit Windows 7 and Maya

2011-08-17 Thread Christoph Gohlke
Dear Andrew, apparently the new version of Maya includes a custom version of Python, which is built with the Visual Studio 2010 compiler (version 16) and the MSVCR10 C runtime library. The standard CPython 2.6 distribution, and almost all existing extension package binaries, use the Visual Stu

[Image-SIG] Help with PIL on 64 bit Windows 7 and Maya

2011-08-17 Thread Andrew_Seymour
Hi, I've integrated PIL into some of our tools for Maya. In particular I use it to create 16bit TIFFs. In Maya 2010 64 bit which I believe uses Python 2.6.1 everything worked fine. I got compiled versions of PIL from: http://www.lfd.uci.edu/~gohlke/pythonlibs/ which worked great. I'm now prep

[Image-SIG] Help inmstalling Python Imaging Library in mac os 10, 7

2011-08-17 Thread Mauricio Martinez
Hi I want to install the Python Imaging Library in my mac 10,7 but I have 0 skills with code and terminal, could won give me precise instructions on how to install it. Thanks for the amazon job you are doing. regards Mauricio ___ Image-SIG maillis

[Image-SIG] Help

2011-08-17 Thread AARON NICHIE
Having a little problem adding certain support to mine PIL in Ubuntu 11.04. The test gives: --- PIL CORE support ok *** TKINTER support not installed *** JPEG support not installed *** ZLIB (PNG/ZIP) support not installed *** FREETYPE2 support not installed --- LITTLECMS support ok Running selfte

Re: [Image-SIG] HELP HELP

2011-08-04 Thread Charlie Clark
Am 01.08.2011, 12:10 Uhr, schrieb AARON NICHIE : Am having difficulty in installing PIL and Django-Photologue. I want Ubuntu terminal commands to install both. The error is: aaronichie@aaronichie-Satellite-P105:~/Downloads/django-photologue-2.3$ python setup.py install running install Checking .

[Image-SIG] HELP HELP

2011-08-04 Thread AARON NICHIE
Am having difficulty in installing PIL and Django-Photologue. I want Ubuntu terminal commands to install both. The error is: aaronichie@aaronichie-Satellite-P105:~/Downloads/django-photologue-2.3$ python setup.py install running install Checking .pth file support in /usr/local/lib/python2.7/dist-p

Re: [Image-SIG] Help needed in Image Rectification.

2011-01-08 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 12:24 PM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > I want your guidance in following problem. > > I have a Rectangle with a known height and width. (aspect ration is fixed) > It has a plane surface. Something like cardboard. Or Rectangle Drawn on > wal

[Image-SIG] Help needed in Image Rectification.

2011-01-08 Thread Narendra Sisodiya
I want your guidance in following problem. I have a Rectangle with a known height and width. (aspect ration is fixed) It has a plane surface. Something like cardboard. Or Rectangle Drawn on wall. I am now taking image of this rectangle from webcam. After taking image of this rectangle from web

Re: [Image-SIG] Help: Converting PIL to Tkinter image objects crashes python

2009-07-13 Thread Tom Baldwin
Hello everyone, Today I tested for this bug having downgraded my Tcl/Tk from 8.5 to 8.4. I also downgraded PIL back to 1.1.6. My reproducer script still finds the bug on both python 2.5 and 2.6 interpreters, displaying error message: alloc: invalid block: 0x67dfa4: 60 0 0 Abort trap as before.

Re: [Image-SIG] Help: Converting PIL to Tkinter image objects crashes python

2009-07-13 Thread Tom Baldwin
Thanks, Fredrik. If 1.1.6 is from 2006 then trying 1.1.7 code sounds like a very good idea. I wasn't sure how to set up the individual tkImaging module which you linked, so I downloaded and built the entire recent beta release, 1.1.7b1. I confirmed that python is seeing the new version: >>>import

Re: [Image-SIG] Help: Converting PIL to Tkinter image objects crashes python

2009-07-09 Thread Fredrik Lundh
On Thu, Jul 9, 2009 at 11:50 PM, Tom Baldwin wrote: > A python-help volunteer suggested downgrading my Tcl/Tk installation from > 8.5 to 8.4, which seems a little weird, since 8.5 has been stable since > December 2007. 1.1.6 was released in december 2006, and core Python didn't switch to 8.5 unti

[Image-SIG] Help: Converting PIL to Tkinter image objects crashes python

2009-07-09 Thread Tom Baldwin
Hey everyone, I'm having some trouble displaying PIL image objects in a Tkinter window, and I'm looking for help. The function PIL.ImageTk.PhotoImage fails and crashes python, displaying the following (unhelpful) error message in the terminal: alloc: invalid block: 0x708338: b0 0 0 Abort trap I

Re: [Image-SIG] help! decoder jpeg not available

2008-11-11 Thread Karsten Hiddemann
Pan,YueQun schrieb: > In gentoo linux, the install is ok ,build information is: You install PIL in Gentoo by emerging dev-python/imaging. Did you do it that way? If that still gives you errors, then file a bug at bugs.gentoo.org, otherwise use the ebuild instead. To install version 1.1.6 instead

[Image-SIG] help! decoder jpeg not available

2008-11-11 Thread Pan Yuequn
In gentoo linux, the install is ok ,build information is: running build running build_py running build_ext PIL 1.1.6 BUILD SUMMARY version 1.1.6 pl

[Image-SIG] help! decoder jpeg not available

2008-11-11 Thread Pan,YueQun
In gentoo linux, the install is ok ,build information is: running build running build_py running build_ext PIL 1.1.6 BUILD SUMMARY version 1.1.6 p

Re: [Image-SIG] Help Installing PIL 1.1.6

2008-10-22 Thread Mike Sarahan
Hi Daniel, It would be wise to also install Xcode, if you haven't already. This is includes gcc and the other things mentioned in debug output that you posted. It should be included on your OSX DVD. As an alternative, you can download it from versiontracker or otherwise: http://www.versiontracke

Re: [Image-SIG] Help Installing PIL 1.1.6

2008-10-20 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Daniel Mellis <[EMAIL PROTECTED]> wrote: > Hello, > > I am running OS X 10.4.11 and python 2.5.2 and when I run "python > setup.py install" I get the following error message: > > --- using frameworks at /System/Library/Frameworks > building '_imaging' extension

Re: [Image-SIG] Help Installing PIL 1.1.6

2008-10-19 Thread Christopher Barker
Daniel Mellis wrote: Hello, I am running OS X 10.4.11 and python 2.5.2 and when I run "python setup.py install" I get the following error message: Use the package you fin here: http://pythonmac.org/packages/py25-fat/index.html Otherwise, you'll need to find and compile all the dependencies

[Image-SIG] Help Installing PIL 1.1.6

2008-10-19 Thread Daniel Mellis
Hello, I am running OS X 10.4.11 and python 2.5.2 and when I run "python setup.py install" I get the following error message: --- using frameworks at /System/Library/Frameworks building '_imaging' extension Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/ MacOSX10.4u.sdk P

Re: [Image-SIG] Help with PIL

2008-05-11 Thread Eric Germaneau
Dear all, I've successfully load my image doing: *f = open(inFile, 'rb') allData = f.read() f.close() im = Image.fromstring("F", (512,512), allData, "raw", "F", 0,1)* Now I have to change the grayscale color to an other gradient like "Cyan hot" in imageJ. Eric. Eric Germaneau wrote

[Image-SIG] Help with PIL

2008-05-11 Thread Eric Germaneau
Dear all, I been trying to open a 32-bit (float) tif image with PIL without any success. I've tried: fp = open("mytest32.tif", "rb") im = Image.open(fp) or im = Image.fromstring("F", (512,512), "mytest32.tif", "raw", "F;32NF", 1,1) or im = Image.fromstring("F", (512,512), "mytest32.tif", "

Re: [Image-SIG] help me to contribute -- writing multi-page TIFF ....

2008-04-14 Thread Waldemar Osuch
On Mon, Apr 14, 2008 at 3:40 AM, Sebastian Haase <[EMAIL PROTECTED]> wrote: > Hi, > Since TIFF seems to be the most wanted format in our group (microscopy > images) I now want to add write support for multi-page tiff image. > > I was wondering if people here could give me some hints and / or >

[Image-SIG] help me to contribute -- writing multi-page TIFF ....

2008-04-14 Thread Sebastian Haase
Hi, Since TIFF seems to be the most wanted format in our group (microscopy images) I now want to add write support for multi-page tiff image. I was wondering if people here could give me some hints and / or references on how to go about this ? Of course if someone knows about existing code to wri

[Image-SIG] Help with building on Windows?

2008-02-03 Thread Ned Batchelder
I need to build Imaging-1.1.6 on Windows. I've downloaded what I thought were the right packages from GnuWin32: freetype-2.3.5-bin freetype-2.3.5-lib jpeg-6b-4-bin jpeg-6b-4-lib zlib-1.2.3-bin zlib-1.2.3-lib I edited the setup.py to add the GnuWin32 include and lib direct

Re: [Image-SIG] Help needed for converting ascii data to image

2007-10-17 Thread Christopher Barker
Varsha purohit wrote: >I need a sample program to use frombuffer frombuffer is for converting binary data to an image. > convert my ascii text file to image file. What form is your ascii text file? You can parse it on your own, or the numpy package (see numpy.fromfile) may help. In any cas

[Image-SIG] Help needed for converting ascii data to image

2007-10-17 Thread Varsha purohit
Hello, I need a sample program to use frombuffer or something like that to convert my ascii text file to image file. Can anybody please share the information. thanks, Rani ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/

[Image-SIG] help with PIL version 1.1.6

2007-06-28 Thread Thanh N. Tran
Hi: I try to build PIL version 1.1.6 with python version 2.5, gcc version 4.1.1 My build system is RHEL 3, 64-bit My build was ok but when I ran the selftest, I got the following error message. Can you tell me what is wrong? Thanks, -Thanh python2.5 selftest.py ***

[Image-SIG] Help with image.tostring parameters

2007-05-18 Thread Robert Norman
I'm new to PIL and wanted to use Image.tostring for inline graphics under mod-python. Seems like a good fit but I can't seem to come up with the format of the required second parameter when you do output = im.tostring ("jpeg", ???) The python traceback says the second parameter is required and i

Re: [Image-SIG] Help with PIL image.tostring

2007-05-18 Thread Fredrik Lundh
Robert wrote: > I'm new to PIL and wanted to use Image.tostring for inline graphics > under mod-python. Seems like a good fit but I can't seem to come up with > the format of the required second parameter when you do > > output = im.tostring ("jpeg", ???) tostring() should only be used if you

[Image-SIG] Help with PIL image.tostring

2007-05-17 Thread Robert
I'm new to PIL and wanted to use Image.tostring for inline graphics under mod-python. Seems like a good fit but I can't seem to come up with the format of the required second parameter when you do output = im.tostring ("jpeg", ???) The python traceback says the second parameter is required and

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread Alexey Borzenkov
On 4/11/07, Douglas Bagnall <[EMAIL PROTECTED]> wrote: > Alexey, I think you are completely right about the problem, but the > solution can be quite a bit simpler: > > dtop = Image.open("dtop.png") > frame = Image.open("frame.png") > > dtop.paste(frame.convert('RGB'), (0,0), frame) > dtop.save("te

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread César Pérez
Thanks to both of you and yes I was expecting the paste function to work just like a paste in any Image Editor. César On Wed, 2007-04-11 at 11:48 +1200, Douglas Bagnall wrote: > Alexey Borzenkov wrote: > > > The problem you have happens because alpha channel of images *also* > > gets composited

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread Douglas Bagnall
Alexey Borzenkov wrote: > The problem you have happens because alpha channel of images *also* > gets composited using the mask you specified. To do it right you > actually need to split image, save target image alpha channel and > after compositing merge it back using original alpha channel: Alex

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread Alexey Borzenkov
On 4/10/07, César Pérez <[EMAIL PROTECTED]> wrote: > Hi, > I am new to this list but and i have a small problem with PIL. > > I am looking for a function that works like composite does in > imagemagick. [..snip..] > from PIL import Image > > dtop = Image.open("dtop.png") > frame = Image.open("fra

[Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-09 Thread César Pérez
Hi, I am new to this list but and i have a small problem with PIL. I am looking for a function that works like composite does in imagemagick. If you don't know, composite puts the first image above the second one and it's like pasting. I have tried PIL paste but I can't get it to work as I want,

Re: [Image-SIG] Help with libjpeg

2006-08-22 Thread Fredrik Lundh
Dan Gaibel wrote: > The worst thing is that libjpeg is, in fact, installed in the system. > For some reason the libjpeg.so.62 file in /usr/lib cannot be read by > setup.py. PIL's build process needs the header files too. > Has anyone encountered this error? It's mission critical that I get

Re: [Image-SIG] Help with libjpeg

2006-08-22 Thread Bob Ippolito
On 8/22/06, Dan Gaibel <[EMAIL PROTECTED]> wrote: > I am having serious problems trying to compile libjpeg, which I need > for JPEG support in the Python Imaging Library. After bumping into > several walls realized that I need to configure the libjpeg > compilation with the enable-shared flag, as

[Image-SIG] Help with libjpeg

2006-08-22 Thread Dan Gaibel
I am having serious problems trying to compile libjpeg, which I need for JPEG support in the Python Imaging Library. After bumping into several walls realized that I need to configure the libjpeg compilation with the enable-shared flag, as follows: ./configure --enable-shared However, this

Re: [Image-SIG] Help on accessing pixels values

2006-06-26 Thread bestdomdom
important thing is that it now works. Thank you Fredrick and also many thanks to Douglas S. Blank for your swift replies. Dom - Original Message - From: "Fredrik Lundh" <[EMAIL PROTECTED]> To: Sent: Saturday, June 24, 2006 5:14 PM Subject: Re: [Image-SIG] Help on accessi

Re: [Image-SIG] Help on accessing pixels values

2006-06-24 Thread Fredrik Lundh
bestdomdom wrote: > First please forgive me for asking such a basic question but I am a newbie > to Python, to programming and I am alone with my IT worries. > I would like to access pixels values in order to make some computations but > with the 1.1.6 PIL, I don't understand. > As an example, her

Re: [Image-SIG] Help on accessing pixels values

2006-06-23 Thread Douglas S. Blank
Dom, You should consult the very good on-line documentation (search for "python image library"). Here is a hint: import Image im = Image.open("myimage.jpg") im.getpixel((0,0)) # position (0,0) im.putpixel((0,0), (0,0,0) ) # black -Doug On Fri, 2006-06-23 at 18:55 +0200, bestdomdom wrote: > Hell

[Image-SIG] Help on accessing pixels values

2006-06-23 Thread bestdomdom
Hello Everybody, First please forgive me for asking such a basic question but I am a newbie to Python, to programming and I am alone with my IT worries. I would like to access pixels values in order to make some computations but with the 1.1.6 PIL, I don't understand. As an example, here is what I

Re: [Image-SIG] Help Opening an Image File

2006-05-04 Thread Fredrik Lundh
Angela Traficante wrote: > Quick question: I tried using the Library to open an Image, but the > interpretor can't find the image file. I also can't find in the > documentation where "import Image" is supposed to get the file from. Does > anyone know where I should put the file so that the Libr

[Image-SIG] Help Opening an Image File

2006-05-04 Thread Angela Traficante
Quick question:  I tried using the Library to open an Image, but the interpretor can't find the image file.  I also can't find in the documentation where "import Image" is supposed to get the file from.  Does anyone know where I should put the file so that the Library/Interpretor can find it?  I'm

Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-13 Thread Fredrik Lundh
Waldemar Osuch wrote: > > I've released a new source kit which fixes this issue and a couple of > > other alpha bugs. ZIP and TAR archives are available here: > > > > http://effbot.org/downloads/#aggdraw > > Oh boy, that was quick just doing our best ;-) I've posted windows binaries for Pyt

Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-12 Thread Waldemar Osuch
> I've released a new source kit which fixes this issue and a couple of > other alpha bugs. ZIP and TAR archives are available here: > > http://effbot.org/downloads/#aggdraw > > Oh boy, that was quick ___ Image-SIG maillist - Image-SIG@python.org

Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-12 Thread Fredrik Lundh
> it's type(Draw(...)) that doesn't work as it should. here's a patch: I've released a new source kit which fixes this issue and a couple of other alpha bugs. ZIP and TAR archives are available here: http://effbot.org/downloads/#aggdraw ___ I

Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-12 Thread Fredrik Lundh
Fredrik Lundh wrote: > looks like > > help(aggdraw.Draw("RGB", (1, 1))) > > is enough to cause a crash. it's type(Draw(...)) that doesn't work as it should. here's a patch: @@ -1903,12 +1904,12 @@ {NULL, NULL} }; -extern "C" void -#ifdef WIN32 -__declspec(dllexport) -#endif +DL_EXPOR

Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-12 Thread Fredrik Lundh
Dick Zantow wrote: > image = Image.new('RGB', (600, 430), 'white') > draw = aggdraw.Draw(image) > help(draw) > > > -->PYTHON CRASH<-- > > > > Can anyone else confirm it? > > My machine started to act funny recently so maybe it is time to rebuild it. > > Same thing happens to me

Re: [Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-11 Thread Dick Zantow
Waldemar Osuch wrote: > I have observed following on Windows XP: > > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > from PIL import Image Image.VERSION > '1.1.5' >

[Image-SIG] help(aggdraw.Draw instance) -> crash on Windows?

2006-02-11 Thread Waldemar Osuch
I have observed following on Windows XP: Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from PIL import Image >>> Image.VERSION '1.1.5' >>> import aggdraw >>> aggdraw.__version__ '1.2a2' >>>

Re: [Image-SIG] help regarding FLC-palette

2005-12-07 Thread Fredrik Lundh
Oliver Albrecht wrote: > Unfortunately (PIL-1.1.5)/I can't read the FLC-palette(Animation in > Civilization3), but some other Programs can do it? (Gimp, Xnview, > AnimationShop3) > > Can someone give some tips/help? can you mail me (or point me to) a sample file ? ___

Re: [Image-SIG] help regarding FLC-palette

2005-12-07 Thread Michele Petrazzo
Oliver Albrecht wrote: > Hello Everyone > > Unfortunately (PIL-1.1.5)/I can't read the FLC-palette(Animation in > Civilization3), but some other Programs can do it? (Gimp, Xnview, > AnimationShop3) Can someone give some tips/help? > I don't know what is FLC palette, but I know that freeimage c

[Image-SIG] help regarding FLC-palette

2005-12-06 Thread Oliver Albrecht
Hello Everyone Unfortunately (PIL-1.1.5)/I can't read the FLC-palette(Animation in Civilization3), but some other Programs can do it? (Gimp, Xnview, AnimationShop3) Can someone give some tips/help? I need this for a feature in a wxPython converting-tool. I appreciate any help or guidance in thi

[Image-SIG] Help On Converting Colours...

2005-11-05 Thread Andrea Gavana
Hello NG,       I have a small image that looks like a GUI button (with 3D effects given by different pixels colours). The current image has as "basic" colour the grey. For "basic", I mean that the predominant colour in the image is grey and some other pixels are brighter or darker in order

Re: [Image-SIG] help for conversion of NUMARRAY to PIL object

2005-09-16 Thread Zhenglong Li
Thank you very much for your generous help. Bob Klimek wrote: > Zhenglong Li wrote: > >> Hi, Fredrik, >> >> Thank you very much for your help. But there still exists a >> problem that the code cann't deal with 3-channel RGB image. If I want >> to read a len*width*3 matrix from PIL object i

Re: [Image-SIG] help for conversion of NUMARRAY to PIL object

2005-09-16 Thread Bob Klimek
Zhenglong Li wrote: >Hi, Fredrik, > > Thank you very much for your help. But there still exists a problem >that the code cann't deal with 3-channel RGB image. If I want to read a >len*width*3 matrix from PIL object into NumArray, and vice versa, what >should I do? > > Try this. import

Re: [Image-SIG] help for conversion of NUMARRAY to PIL object

2005-09-15 Thread Zhenglong Li
Hi, Fredrik, Thank you very much for your help. But there still exists a problem that the code cann't deal with 3-channel RGB image. If I want to read a len*width*3 matrix from PIL object into NumArray, and vice versa, what should I do? Thanks again! Fredrik Lundh wrote: > Zhe

Re: [Image-SIG] help for conversion of NUMARRAY to PIL object

2005-09-15 Thread Fredrik Lundh
Zhenglong Li wrote: > I am a newbie to python. I encounter a problem that how to convert an > array of numarray to pil object. For example, the data in an image is > extracted using Image.getdata, then the data are converted into an > array in numarray. But when the array is needed to convert to

[Image-SIG] help for conversion of NUMARRAY to PIL object

2005-09-15 Thread Zhenglong Li
hi, everybody here, I am a newbie to python. I encounter a problem that how to convert an array of numarray to pil object. For example, the data in an image is extracted using Image.getdata, then the data are converted into an array in numarray. But when the array is needed to convert

[Image-SIG] Help Experimental (palette)

2005-06-06 Thread Oliver Albrecht
Hello again, I love PIL and would like support this.(,no matter whether it is commercial) Sorry if my last messages was bad. I've experimented with palette.save/load options and i extended the palette.save/load functions. It is not important, but it can be attained without large expenditure. The

[Image-SIG] Help - Palette

2005-06-01 Thread Oliver Albrecht
Hello, (I found only the PIL(Draft Edition)(Overview)Books as Docu in the big Web.) The RGB to P Color-reduction is the best what i've ever seen. But with a weakness, the BackgroundColor is also reduced(deleted if more than 256 colors, i mean) Now i've try to make a background mask before. (After

Re: [Image-SIG] Help GIF format

2005-05-31 Thread Fredrik Lundh
Oliver Albrecht wrote: > I try compile my model with py2exe, but it hold on GifImagePlugin on > line ['_imaging_gif'] sould i delete this line!? I'm pretty sure you can tell py2exe to ignore optional extensions. if you get stuck, you can replace the try/import/except statement in GifImagePlugin

[Image-SIG] Help GIF format

2005-05-31 Thread Oliver Albrecht
by Fredrik Lundh Jul 11 1998 > When writing GIF files, PIL uses a simpleminded encoding that, by some > odd reason, LZW decoders have no trouble reading. To write compressed > GIF files, there are a number of options: > > -- install NETPBM, and hack GifImagePlugin so it uses _save_ppm instead

[Image-SIG] Help colors

2005-05-31 Thread Oliver Albrecht
Greetings, I'm new to Python and trying to use PIL to: - Wich Colorreduce Method used PIL other as "Web"? "Octree" , "Median" ? - Why has the GIF format double size? (I use PSP as Graphic-program ) - How discover the nearest color? x= (r1,g1,b1) - (r,g,b) y= (r2,g2,b2) -

[Image-SIG] Help with PIL - importing CGM files.

2005-05-08 Thread Mark Thomas
Does anybody know how I can import / load CGM image files into the Python Imaging Library? It seems odd to me that this isn't one of the standard recognized formats for PIL since it is the main output file format for a number of python graphics modules (gist, oog etc). Thanks Mark -- Dr Mark Tho

[Image-SIG] Help with TIFF images

2005-04-06 Thread dvarrazzo
Hi everybody, i want to open a 16 bit grayscale TIFF file with photometric interpretation 0 (white is 0). Such files are a common densitometers product. The corrispondenting format key is (0, 1, 1, (16,), ()) in PIL 1.1.5 (it used to be (0, 1, (16,), ()) in previous releases. This key is missing

[Image-SIG] Help wanted: sensible way to scale 16-bit grayscale image

2004-12-15 Thread Russell E. Owen
I'm building a simple image viewer for astronomical images (after giving up integrating ds9 into my app). It is basically working, but I suspect I am not being very sensible in the way I do intensity scaling (to map a high dynamic range image into 8 bits). The data arrives as 16-bit integer, th