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
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
___
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
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
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
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
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
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-
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
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 '
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
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...
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
--
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
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
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
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
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
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
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
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 .
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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", "
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
>
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
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
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
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/
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
***
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
> 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
> 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
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
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
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'
>
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'
>>>
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 ?
___
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
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
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
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
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
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
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
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
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
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
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
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
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) -
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
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
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
84 matches
Mail list logo