PIL for the Python 3.2.3

2012-06-15 Thread Gonzalo de Soto
Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Thanks. Gonzalo -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL threading problems

2012-05-30 Thread Christian Heimes
Am 30.05.2012 05:09, schrieb Paul Rubin: > Kind of a long shot, but are there known problems in calling PIL from > multiple threads? I'm getting weird intermittent core dumps from my > app, no idea what's causing them, but PIL is the only C module I'm > using, and I

PIL threading problems

2012-05-29 Thread Paul Rubin
Kind of a long shot, but are there known problems in calling PIL from multiple threads? I'm getting weird intermittent core dumps from my app, no idea what's causing them, but PIL is the only C module I'm using, and I do see some mention on the interwebs that there might be an

Cannot remove PIL, numpy lib from XP

2012-04-02 Thread W. eWatson
Well, it looks like I cannot remove PIL with control panel remove/add. The dialog just flashes when I push the button. I tried on an old program not in use, and it did respond as one would want. My guess is that I should not have started with removing Python 2.5.2 first. How do I get out of

PIL for py3k not picking up external libraries

2012-03-16 Thread Collin Day
Hi all, I am using python 3.2 on an amd64 Gentoo system. I was trying to compile an unofficial version of PIL to work in 3.2 that I found here: http://www.lfd.uci.edu/~gohlke/pythonlibs Anyway, when I run the setup.py to compile the source, it doesn't pick up tkinter, zlib, or fre

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Gelonida N
t; As far as I know, I did not see any difference in output on windows, linux >> and mac os x >> as long as the code used the same ttf file and PIL versions. (but I'll >> double check now >> and see if I remember this correctly). > > To follow up on myself

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Irmen de Jong
On 4-8-2011 21:30, Irmen de Jong wrote: > As far as I know, I did not see any difference in output on windows, linux > and mac os x > as long as the code used the same ttf file and PIL versions. (but I'll double > check now > and see if I remember this correctly). To follo

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Irmen de Jong
s production. And run the tests there. > The second (more import issue) is, that the images should look the same > whether created on a Windows or Linux host. > > I didn't know that PIL delegated font rendering to the underlying OS, > but thought it contains its own rendering.

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Gelonida N
rary would be appropriate and would yield the same >> result independent of the OS (assuming the versions of the python >> libraries are the same) >> Images should be pixel identical independent on the platform on which >> the image is created. >> >> I made som

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Steven D'Aprano
Gelonida N wrote: > I wondered what library would be appropriate and would yield the same > result independent of the OS (assuming the versions of the python > libraries are the same) > Images should be pixel identical independent on the platform on which > the image is created. Short answer: you

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Thomas Jollans
ssuming the versions of the python > libraries are the same) > Images should be pixel identical independent on the platform on which > the image is created. > > I made some attempts with PIL (Image / ImageFont / ImageDraw), > but have difficulties getting the same font under Li

PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Gelonida N
d what library would be appropriate and would yield the same result independent of the OS (assuming the versions of the python libraries are the same) Images should be pixel identical independent on the platform on which the image is created. I made some attempts with PIL (Image / ImageFont / ImageDraw)

Re: PIL: The _imaging C module is not installed

2011-05-09 Thread Irmen de Jong
cess: > > build/temp.linux-x86_64-2.4/libImaging/ZipEncode.o -L/usr/local/lib > -L/usr/lib -ljpeg > -lz -o build/lib.linux-x86_64-2.4/_imaging.so [...] > > $ python selftest.py > *** The _imaging C module is not installed > Don't know why the build seems to fail. PIL

Re: PIL: The _imaging C module is not installed

2011-05-09 Thread Christian Heimes
Am 09.05.2011 08:22, schrieb Nico Grubert: > $ python selftest.py > *** The _imaging C module is not installed It works for me after an inplace installation of the C extensions with "python setup.py build_ext -i". With build_ext -i the C extension is installed inside the source tree so selftest ca

Re: PIL: The _imaging C module is not installed

2011-05-08 Thread Nico Grubert
usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc ---- PIL

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Irmen de Jong
On 06-05-11 15:56, Nico Grubert wrote: However, running the selftest still fails: $ python selftest.py *** The _imaging C module is not installed I had this happening to me as well someday. I recall that first installing it (python setup.py install), and then rerunning selftest, solved that

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Nico Grubert
> PIL will compile and install if you don't have some development > libraries and then simply not work or not work up to full steam when > used. > > To avoid this, you need to install the appropriate libraries, among > which are: > > libjpeg-devel > freetype-d

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Wojtek Mamrak
@Michel use PIL downloaded from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ regards 2011/5/6 Christian Heimes : > Am 06.05.2011 01:48, schrieb Michel Claveau - MVP: >> Re! >> >> And why the problem no exist with PIL 1.1.6?  (only 1.1.7) >> Is that the versi

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Christian Heimes
Am 06.05.2011 01:48, schrieb Michel Claveau - MVP: > Re! > > And why the problem no exist with PIL 1.1.6? (only 1.1.7) > Is that the version 1.1.6 does not use these libraries? PIL 1.1.6 also uses its internal C library to speed things up. For Windows you should use the precompi

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
On Fri, 2011-05-06 at 01:45 +0200, Michel Claveau - MVP wrote: > Hi! > > > you need to install the appropriate libraries, among which are: > > libjpeg-devel > > freetype-devel > > libpng-devel > > OK, but where can I find it? I want use PIL with Python unde

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Michel Claveau - MVP
Re! And why the problem no exist with PIL 1.1.6? (only 1.1.7) Is that the version 1.1.6 does not use these libraries? @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Michel Claveau - MVP
Hi! > you need to install the appropriate libraries, among which are: > libjpeg-devel > freetype-devel > libpng-devel OK, but where can I find it? I want use PIL with Python under Windows, and I can't compile C's sources. Should I replace PIL by ImageMagick? @-salutati

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
Oh I forgot to say, after installing these libraries, you will need to re-compile (install) PIL. -a -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
On Thu, 2011-05-05 at 15:35 +0200, Nico Grubert wrote: > Hi there > > I am having trouble to install PIL 1.1.7 on CentOS. > > I read and followed the instructions from > http://effbot.org/zone/pil-imaging-not-installed.htm > > However, I still get the "The _imag

PIL: The _imaging C module is not installed

2011-05-05 Thread Nico Grubert
Hi there I am having trouble to install PIL 1.1.7 on CentOS. I read and followed the instructions from http://effbot.org/zone/pil-imaging-not-installed.htm However, I still get the "The _imaging C module is not installed" error if I run the selftest: $ python selftest.py *** The

Re: PIL Question

2011-05-02 Thread nirinA raseliarison
t;, "credits" or "license" for more information. >>> from PIL import ImageGrab >>> ImageGrab.grab().save("screen_capture.jpg", "JPEG") >>> import os >>> os.listdir(os.getcwd()) ['.appcfg_cookies', '.a

Re: PIL Question

2011-05-01 Thread Terry Reedy
On 5/1/2011 9:00 PM, Chris Rebert wrote: I would think to a file named "screen_capture.jpg" in the current working directory. What that is for IDLE, I don't know. At least on windows with 3.2, if one just starts up the shell, it is in the Pythonxy directory. If one runs a file from an edit wi

Re: PIL Question

2011-05-01 Thread Chris Rebert
On Sun, May 1, 2011 at 1:50 PM, PyNewbie wrote: > Hi, > > I'm new with Python and PIL. I have a very simple question regarding an image > capture function I'm attempting. > > Here is the code: > > >>>> from PIL import ImageGrab >>

PIL Question

2011-05-01 Thread PyNewbie
Hi, I'm new with Python and PIL. I have a very simple question regarding an image capture function I'm attempting. Here is the code: >>> from PIL import ImageGrab >>> ImageGrab.grab().save("screen_capture.jpg", "JPEG") Question: I can

PIL in Apache in Fedora 14

2011-03-28 Thread Sandipan
Python 2.7 Fedora 14 import Image fails in CGI script due to https://bugzilla.redhat.com/show_bug.cgi?id=582009 How do I make it work? I have searched the web for days and can't figure out how to apply the many patches discussed. Thanks. Sandipan -- http://mail.python.org/mailman/listinfo/python-

Re: PIL Open Problem

2011-02-07 Thread Richard Holmes
Image code to a separate >> module > >This is a classic problem known as “namespace clobbering”. > >It is best to *avoid* the recommendations made in many libraries of >‘from foo import *’, because that will clobber any names in your >namespace that happen to match names in the

Re: PIL Open Problem

2011-02-07 Thread Westley Martínez
On Mon, 2011-02-07 at 15:54 -0800, rantingrick wrote: > On Feb 7, 5:35 pm, Richard Holmes wrote: > > > Thanks, Ben. It turns out that I imported both Image and Tkinter and > > Tkinter has an Image class that masked the Image class in the Image > > module. I solved the problem by moving the Image

Re: PIL Open Problem

2011-02-07 Thread Ben Finney
s “namespace clobbering”. It is best to *avoid* the recommendations made in many libraries of ‘from foo import *’, because that will clobber any names in your namespace that happen to match names in the ‘foo’ module. Rather, import Tkinter and PIL as distinct namespaces:: >>> import PIL

Re: PIL Open Problem

2011-02-07 Thread rantingrick
On Feb 7, 5:35 pm, Richard Holmes wrote: > Thanks, Ben. It turns out that I imported both Image and Tkinter and > Tkinter has an Image class that masked the Image class in the Image > module. I solved the problem by moving the Image code to a separate > module Yes an another great example of why

Re: PIL Open Problem

2011-02-07 Thread Richard Holmes
On Tue, 08 Feb 2011 09:47:32 +1100, Ben Finney wrote: >Richard Holmes writes: > >> I'm trying to create an image for use in Tkinter. If I understand the >> PIL documentation correctly, I first need to import Image, then >> create an instance of the Image class an

Re: PIL Open Problem

2011-02-07 Thread Ben Finney
Richard Holmes writes: > On Mon, 07 Feb 2011 17:28:45 -0500, Corey Richardson > wrote: > >This is good: > > > >import Image > >im = Image.open(foo) > Uh, thanks, Corey, but that's what I'm doing. See Traceback: Without code, we can't see what you're doing. Please post a minimal working example

Re: PIL Open Problem

2011-02-07 Thread Richard Holmes
On Mon, 07 Feb 2011 17:28:45 -0500, Corey Richardson wrote: >On 02/07/2011 05:27 PM, Richard Holmes wrote: >> I'm trying to create an image for use in Tkinter. If I understand the >> PIL documentation correctly, I first need to import Image, then >> create an instance o

Re: PIL Open Problem

2011-02-07 Thread Ben Finney
Richard Holmes writes: > I'm trying to create an image for use in Tkinter. If I understand the > PIL documentation correctly, I first need to import Image, then > create an instance of the Image class and call 'open' (this according > to the documentation). When I try

Re: PIL Open Problem

2011-02-07 Thread Corey Richardson
On 02/07/2011 05:27 PM, Richard Holmes wrote: > I'm trying to create an image for use in Tkinter. If I understand the > PIL documentation correctly, I first need to import Image, then > create an instance of the Image class and call 'open' Don't do that. Th

PIL Open Problem

2011-02-07 Thread Richard Holmes
I'm trying to create an image for use in Tkinter. If I understand the PIL documentation correctly, I first need to import Image, then create an instance of the Image class and call 'open' (this according to the documentation). When I try to do this using the model in the docum

Fwd: 'Upload a valid image' errors with PIL 1.1.7/ Python 2.6/ Mac 10.6.2/ Django 1.2.3

2011-02-03 Thread Anjali Arora
I'm sorry, by admin site below, I mean Django Admin site. Hi, I am struggling with this for the past 2 days: first I got the above error, & googled around to find that I needed the libjpeg module as well, so I re-installed the lot, first libjpeg & then PIL; got a couple errors like

'Upload a valid image' errors with PIL 1.1.7/ Python 2.6/ Mac 10.6.2

2011-02-03 Thread Anjali Arora
Hi, I am struggling with this for the past 2 days: first I got the above error, & googled around to find that I needed the libjpeg module as well, so I re-installed the lot, first libjpeg & then PIL; got a couple errors like JPEG decoder not available etc, fixed that. Now it passes the

[Fwd: Re: Alternative to PIL in Python 3.1]

2010-12-14 Thread craf
- Mensaje reenviado > De: Emile van Sebille > Para: python-list@python.org > Asunto: Re: Alternative to PIL in Python 3.1 > Fecha: Tue, 14 Dec 2010 16:39:19 -0800 > > On 12/14/2010 3:17 PM craf said... > > Hi. > > > > I wonder if anyone know

Re: Alternative to PIL in Python 3.1

2010-12-14 Thread Emile van Sebille
On 12/14/2010 3:17 PM craf said... Hi. I wonder if anyone knows any alternative to PIL library, as this does not work with Python 3.1. Thanks in advance Regards. Cristian You might try the 1.1.6 port referenced here: http://www.mail-archive.com/image-sig@python.org/msg02404.html Emile

Alternative to PIL in Python 3.1

2010-12-14 Thread craf
Hi. I wonder if anyone knows any alternative to PIL library, as this does not work with Python 3.1. Thanks in advance Regards. Cristian -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL how to enlarge image

2010-12-04 Thread Tim Roberts
robos85 wrote: > >Hi, I try to enlarge original image. >I have image in size: 100x100 and I want to make it 120x120. >But resize() doesn't make it bigger. Is there any method for that? "resize" does not change the image. Instead, it returns the resized image. If you don't need the original any m

Re: PIL how to enlarge image

2010-12-04 Thread Alain Ketterlin
robos85 writes: > Hi, I try to enlarge original image. > I have image in size: 100x100 and I want to make it 120x120. > But resize() doesn't make it bigger. Is there any method for that? You have to use i.transform() -- Alain. -- http://mail.python.org/mailman/listinfo/python-list

PIL how to enlarge image

2010-12-04 Thread robos85
Hi, I try to enlarge original image. I have image in size: 100x100 and I want to make it 120x120. But resize() doesn't make it bigger. Is there any method for that? -- http://mail.python.org/mailman/listinfo/python-list

Re: Copy Protected PDFs and PIL

2010-11-14 Thread Alexander Gattin
Hello, On Fri, Nov 12, 2010 at 12:00:55PM -0800, Brett Bowman wrote: > MRAB - > I've tried worker threads, and it kills the > thread only and not the program as a whole. I > could use that as a work-around, but I would > prefer something more direct, in case other > problems arise. Looks like th

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Steve Holden
On 11/12/2010 12:00 PM, Brett Bowman wrote: > Steve Holden - > A traceback sounds like a great idea, but I don't know how to go about > it, or know what is involved. Could you suggest a tutorial I could follow? > The traceback is the listing of modules and line numbers that you normally get when

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Emile van Sebille
On 11/12/2010 12:00 PM Brett Bowman said... FATAL PDF disallows copying I ran into something like this about six months ago. IIRC, I was able to detect this setting (using reportlab I think), but a quick look to rediscover what I did specifically didn't yield anything useful. I'm pretty su

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Robert Kern
On 11/12/10 2:00 PM, Brett Bowman wrote: > A whoops, good catch. I meant to say gfx and swftools. I'm using PIL to > modify the images once I get a PNG from swftools, and I mis-spoke. There is nothing you can do to catch the error. swftools is not written to be used as a Python lib

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Brett Bowman
ay gfx and swftools. I'm using PIL to modify the images once I get a PNG from swftools, and I mis-spoke. The code in question is: import gfx print "1" doc = gfx.open("pdf", MY_FILE) print "2" page1 = doc.getPage(1)

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Robert Kern
On 2010-11-11 14:28 , Brett Bowman wrote: I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs for my company, but a few hundred of them are copy protected. To make matters worse, I can't seem to trap the error it causes: whenever it happens PIL throws a "FATA

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Brett Bowman
matters worse, I can't seem to trap the error it causes: whenever it happens > PIL throws a "FATAL PDF disallows copying" message and dies. An automated > way to snap a picture of the PDFs would be ideal, but I'd settle for a way > to skip over them without crashing

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Emile van Sebille
On 11/11/2010 12:28 PM Brett Bowman said... I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs for my company, but a few hundred of them are copy protected. To make matters worse, I can't seem to trap the error it causes: whenever it happens PIL throws a

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Steve Holden
On 11/11/2010 3:28 PM, Brett Bowman wrote: > I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs > for my company, but a few hundred of them are copy protected. To make > matters worse, I can't seem to trap the error it causes: whenever it > happens P

Re: Copy Protected PDFs and PIL

2010-11-11 Thread MRAB
On 11/11/2010 20:28, Brett Bowman wrote: I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs for my company, but a few hundred of them are copy protected. To make matters worse, I can't seem to trap the error it causes: whenever it happens PIL throws a "FATA

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Philip Semanchuk
On Nov 11, 2010, at 3:28 PM, Brett Bowman wrote: > I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs for > my company, but a few hundred of them are copy protected. To make matters > worse, I can't seem to trap the error it causes: whenever it hap

Copy Protected PDFs and PIL

2010-11-11 Thread Brett Bowman
I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs for my company, but a few hundred of them are copy protected. To make matters worse, I can't seem to trap the error it causes: whenever it happens PIL throws a "FATAL PDF disallows copying" message and

PIL : "The _imaging C module is not installed"

2010-09-13 Thread Michel Claveau - MVP
Hello! (*** sorry for my bad english***) I have the message (title), but only with PIL 1.1.7 (Windows XP, Vista or 7 (32 bits or 64 bits)). I tried: _imaging.pyd exist in C:\Python26\Lib\site-packages\PIL OK python -v >>> import Image OK sys.path contain C:\Python26\Lib\site

Re: Where do I report a bug to the pythonware PIL

2010-09-03 Thread Robert Kern
On 9/3/10 4:35 AM, jc.lopes wrote: Does anyone knows what is the proper way to submit a bug report to pythonware PIL? http://mail.python.org/mailman/listinfo/image-sig -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible b

Re: Where do I report a bug to the pythonware PIL

2010-09-03 Thread Alex Willmer
On Sep 3, 10:35 am, "jc.lopes" wrote: > Does anyone knows what is the proper way to submit a bug report to > pythonware PIL? > > thanks > JC Lopes The Python Image SIG list http://mail.python.org/mailman/listinfo/image-sig "Free Support: If you don't have a

Where do I report a bug to the pythonware PIL

2010-09-03 Thread jc.lopes
Does anyone knows what is the proper way to submit a bug report to pythonware PIL? thanks JC Lopes -- http://mail.python.org/mailman/listinfo/python-list

Re: pil and reportlab: image compression

2010-08-27 Thread steph
On 26 Aug., 13:16, steph wrote: > Hi group, > > I've written a small application that puts images into a pdf document. > It works ok, but my problem is that the pdf-files become quite huge, > bigger than the original jpegs. The problem seems to arise because I > use PIL

pil and reportlab: image compression

2010-08-26 Thread steph
Hi group, I've written a small application that puts images into a pdf document. It works ok, but my problem is that the pdf-files become quite huge, bigger than the original jpegs. The problem seems to arise because I use PIL to resize the pictures - and the images seem to get uncompress

Re: Need help from someone that have PIL installed

2010-08-07 Thread alejandro
> > Is the file, which you claim is UTF-8 encoded, actually UTF-8 encoded? > If you're not sure, explicitly tell your text editor to save the file as > UTF-8, and then try again. I feel like an idiot... haven't used Python for some time... my editor was set for utf-8 on PHP projects and other...

Re: Need help from someone that have PIL installed

2010-08-06 Thread Thomas Jollans
On 08/06/2010 04:37 PM, alejandro wrote: > >> # the last tuple is the background color >> img = Image.new("RGBA",(300, 50), (0, 0, 0, 0)) > Thank you for this.... > >> # I think that the PIL can cope with unicode, so add a u-prefix here: >> text = u&

Re: Need help from someone that have PIL installed

2010-08-06 Thread Peter Otten
s the output of my script on your computer? $ python -V Python 2.6.4 $ python -c "import Image; print Image.VERSION" 1.1.6 $ cat draw_text.py # encoding:utf-8 from PIL import Image import ImageDraw import ImageFont img = Image.new("RGBA",(300, 50), (0, 0, 0, 0)) draw = Ima

Re: Need help from someone that have PIL installed

2010-08-06 Thread alejandro
> > Make sure that > > # encoding:utf-8 > > is the first line of your script, details and fineprint here: > > http://www.python.org/dev/peps/pep-0263/ > > Peter Tryed that... What was the output of my script on your computer? -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help from someone that have PIL installed

2010-08-06 Thread Peter Otten
alejandro wrote: >> # the last tuple is the background color >> img = Image.new("RGBA",(300, 50), (0, 0, 0, 0)) > Thank you for this > >> # I think that the PIL can cope with unicode, so add a u-prefix here: >> text = u"proba test �"

Re: Need help from someone that have PIL installed

2010-08-06 Thread alejandro
> # the last tuple is the background color > img = Image.new("RGBA",(300, 50), (0, 0, 0, 0)) Thank you for this > # I think that the PIL can cope with unicode, so add a u-prefix here: > text = u"proba test ¾æèð¹" > draw.text((20,8), text ,font=arial, fil

Re: Need help from someone that have PIL installed

2010-08-06 Thread Peter Otten
alejandro wrote: > Can please someone run this little script that should output characters > like � in an image. > If it does it correctly can you tell me what OS, python version & PIL > version you have? > Or better if someone can tell me why this is not working properly

Need help from someone that have PIL installed

2010-08-06 Thread alejandro
Can please someone run this little script that should output characters like ¾æè¹ð in an image. If it does it correctly can you tell me what OS, python version & PIL version you have? Or better if someone can tell me why this is not working properly on my PC? (Win XP, PIL 1.1.6., Python

Re: PIL

2010-08-03 Thread GrayShark
As we seem to be at an impasse with respect to PIL and xpm, I know gimp does support saving as xpm and that gimp has a python language console. Perhaps parvini_na...@yahoo.com, could look to the gimp mailing list for help? Steven On Tue, 03 Aug 2010 01:56:20 -0700, Chris Rebert wrote: >

Re: PIL

2010-08-03 Thread Chris Rebert
On Tue, Aug 3, 2010 at 1:45 AM, Navid Parvini wrote: > Dear All, > > I want to convert a .png file to .xpm using PIL. I used the following command: > Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not > convert it. > > Would y

Re: PIL

2010-08-03 Thread Matteo Landi
I don't think yours is a permitted conversion[1]. It seems that PIL supports xpm format only for reading, but I could be wrong. Regards. [1] http://www.daniweb.com/forums/thread260074.html On Tue, Aug 3, 2010 at 10:45 AM, Navid Parvini wrote: > Dear All, > > I want to convert

Re: PIL

2010-08-03 Thread James Mills
On Tue, Aug 3, 2010 at 6:45 PM, Navid Parvini wrote: > I want to convert a .png file to .xpm using PIL. I used the following > command: > Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not > convert it. > > Would you please hel

PIL

2010-08-03 Thread Navid Parvini
Dear All, I want to convert a .png file to .xpm using PIL. I used the following command: Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not convert it. Would you please help me and let me know that how can I convert/save .xpm files in PIL. Than

PIL Query

2010-07-12 Thread Ankit Jhalaria
Hi I was using the PIL. I found it pretty useful. I was wondering if you could please let me know, whether I could change the image size. What I mean is if suppose I have 100 points having the same latitude and longitude, the point on the map appears (for instance as a red circle). My question to

Re: Python 3 - Is PIL/wxPython/PyWin32 supported?

2010-07-07 Thread Giampaolo Rodolà
2010/7/7 durumdara : > Hi! > > I have an environment under Python 2.6 (WinXP). That is based on PIL, > wxPython/PyWin32. > > In the project's pages I see official installer for only PyWin32. > > I don't know that PIL or wxPython supports Python 3 or not. May wi

Re: Python 3 - Is PIL/wxPython/PyWin32 supported?

2010-07-07 Thread Daniel Fetchinson
> I don't know that PIL or wxPython supports Python 3 or not. May with > some trick these packages are working. > > Does anybody know about it? > Can I replace my Py2.6 without lost PIL/wxPython? PIL currently does not support python 3 but release 1.1.7 will in the future.

Python 3 - Is PIL/wxPython/PyWin32 supported?

2010-07-07 Thread durumdara
Hi! I have an environment under Python 2.6 (WinXP). That is based on PIL, wxPython/PyWin32. In the project's pages I see official installer for only PyWin32. I don't know that PIL or wxPython supports Python 3 or not. May with some trick these packages are working. Does anybody kno

Re: Problem PIL-1.1.7 & _imagingft

2010-06-24 Thread Christian Heimes
Am 24.06.2010 14:39, schrieb Michel Claveau - MVP: > Hi! > > With PIL-1.1.7.win32-py2.6 and Windows 7, I have this traceback: > raise ImportError("The _imagingft C module is not installed") > ImportError: The _imagingft C module is not installed > > I teste

Problem PIL-1.1.7 & _imagingft

2010-06-24 Thread Michel Claveau - MVP
Hi! With PIL-1.1.7.win32-py2.6 and Windows 7, I have this traceback: raise ImportError("The _imagingft C module is not installed") ImportError: The _imagingft C module is not installed I tested "import _imaging" and several other things, without success. If I re-install P

Colour TIFF support (PIL or otherwise)

2010-06-13 Thread Hans Georg Schaathun
Does anyone know how to handle TIFF images in Python? The pylab support uses PIL, and using either pylab or PIL directly, it messes up the colour scheme. It may look as if it loads CMY believing that it is RGB, but I am not absolutely sure. I have no problem handling Microsoft BMP colour images

Re: Problem displaying jpgs in Tkinter via PIL

2010-05-11 Thread Antoine Pitrou
On Tue, 11 May 2010 09:57:01 -0700 Armin wrote: > Never mind, I gave up on Tkinter and have switched to wxPython now. > Getting jpg images to display in a wx frame worked like a charm... (As > I said, I'm very new to Python, so I didn't really know what my options > for GUI programming were.)

Re: Problem displaying jpgs in Tkinter via PIL

2010-05-11 Thread Armin
Armin said: I'm new to Python and have been playing around with it using the Enthought Python distribution for Mac OS X 10.6.3 (EPD academic license, version 6.1 with python 2.6.4). It's been great learning the basics, but I've started running into problems when I'm t

Problem displaying jpgs in Tkinter via PIL

2010-05-10 Thread Armin
Hi everyone, I'm new to Python and have been playing around with it using the Enthought Python distribution for Mac OS X 10.6.3 (EPD academic license, version 6.1 with python 2.6.4). It's been great learning the basics, but I've started running into problems when I'm t

Re: PIL question

2010-04-06 Thread Lie Ryan
On 04/06/10 19:47, Peter Otten wrote: > Tim Eichholz wrote: > >> I think maybe I am using the wrong function. I want to paste the >> entire 192x192 contents of cols[f] into newimage. I would think it >> works like newimage.paste(cols[f], (x, 0, 192+x, 192)) if that's not >> it I think I'm missing

Re: PIL question

2010-04-06 Thread Peter Otten
Tim Eichholz wrote: > I think maybe I am using the wrong function. I want to paste the > entire 192x192 contents of cols[f] into newimage. I would think it > works like newimage.paste(cols[f], (x, 0, 192+x, 192)) if that's not > it I think I'm missing a function Don't "think"! Read the documentat

Re: PIL question

2010-04-06 Thread Tim Eichholz
the paste line. > > newimage.paste(cols[f], (f*framew, 0, (f*framew)+192, 192)) > > The 4-tuple doesn't match the size of the image you are pasting: > > >>> from PIL import Image > >>> image = Image.open("tmp1.png") > >>> image.siz

Re: PIL question

2010-04-06 Thread Peter Otten
) The 4-tuple doesn't match the size of the image you are pasting: >>> from PIL import Image >>> image = Image.open("tmp1.png") >>> image.size (134, 400) >>> image.paste(image, (0, 0, 134, 400)) # correct size --> works >>> image.pa

PIL question

2010-04-05 Thread Tim Eichholz
I'm trying to cut a BMP with 80 adjacent frames down to 40 using the Image.copy and .paste functions but I'm getting error "ValueError: images do not match" on the paste line. Here is the source --- import sys from PIL import Image if len(sys.argv) == 2: fil

Re: GIF89A and PIL

2010-03-29 Thread Cameron Simpson
On 27Mar2010 19:44, Stephen Hansen wrote: | Yeah, I don't expect much from PNG. The images are very small but I | might be sending a LOT of them over a pipe which is fairly tight, so | 50-60 bytes matters. That's why I selected GIF. How well does a stream of XPM files compress? Probably not enoug

Re: GIF89A and PIL

2010-03-29 Thread Gabriel Genellina
En Mon, 29 Mar 2010 04:41:23 -0300, Gregory Ewing escribió: Stephen Hansen wrote: So I wonder if there's just some hyper-optimization Photoshop does that PIL can't round-trip. You may find that PIL isn't bothering to compress at all, or only doing it in a very simpleminde

Re: GIF89A and PIL

2010-03-29 Thread Gregory Ewing
Stephen Hansen wrote: So I wonder if there's just some hyper-optimization Photoshop does that PIL can't round-trip. You may find that PIL isn't bothering to compress at all, or only doing it in a very simpleminded way. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: GIF89A and PIL

2010-03-28 Thread garabik-news-2005-05
Harishankar wrote: > >> Just opening, and then saving the same file with no changes at all, >> resulted in a 72 byte file growing to 920. >> >> I thought it was GIF87a vs GIF89a... but have since come to determine it >> doesn't appear to be. I decided to give PNG a try again, since those >> extr

Re: GIF89A and PIL

2010-03-27 Thread Chris Colbert
; I thought it was GIF87a vs GIF89a... but have since come to determine it > > doesn't appear to be. I decided to give PNG a try again, since those > > extra 50 bytes *matter*, but if I can't get GIF to work, 50 is better > > then 900. Unfortunately, I hit the same wall

Re: GIF89A and PIL

2010-03-27 Thread Harishankar
try again, since those > extra 50 bytes *matter*, but if I can't get GIF to work, 50 is better > then 900. Unfortunately, I hit the same wall there. > > If I convert these itty-bitty images into PNG, they're about 120 bytes > or so. Opening one in PNG, making no changes, and

<    1   2   3   4   5   6   7   8   9   10   >