[Image-SIG] New to PIL and struggling...

2005-04-21 Thread charlie clark
f the pasted image is white rather than transparent. I think that I should be doing something with a mask but I don't quite understand how this works. Thanks for any tips. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D-40215 Tel: +49-211-938-5360 GSM: +49-17

[Image-SIG] (no subject)

2005-04-22 Thread charlie clark
"charlie clark" wrote: I would like to be able to mark areas on a map with round points. I already have the round points as a separate graphic with a transparent background. When I use Image.paste(im, (10, 10)) the paste works but the background of the pasted image is white r

[Image-SIG] Return of the transparency demon

2005-08-26 Thread Charlie Clark
Dear list, because of the problems that Internet Explorer has with RGBA PNGs I'm trying to convert a set of images to GIFs but hitting problems as usual. for file in files: file = file.split(".") if file[1] == "png": im = Image.open(".".join(file)) new = im.convert("

[Image-SIG] Problem with rendering accented capitals in text

2009-01-05 Thread Charlie Clark
not been able to fix it - all the magic seems to happen in the font.render() method in _imagingft and this is probably dependent upon Freetype code. But maybe someone out there knows of a workaround? Thanks very much and a happy new year! Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldor

Re: [Image-SIG] Problem with rendering accented capitals in text

2009-01-06 Thread Charlie Clark
mail, so I can take a look at your specific case). Thanks. Font sent in a separate e-mail. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@pytho

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

2009-01-28 Thread Charlie Clark
27;png' and len(string.split(a,'.'))==2 Strings have had methods since Python 1.6! But os.path.splitext() is probably all you need. Sorry that this won't help you find the cause of the crash. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938

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

2009-01-29 Thread Charlie Clark
The same to my colleague @infinit.sk. Could the admin chech it please ? The problem is almost certainly with Google - what is the precise error message? Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226

Re: [Image-SIG] ImportError: The _imaging C module is not installed

2009-02-17 Thread Charlie Clark
rary. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] Enhancing an Image

2009-02-18 Thread Charlie Clark
0,1000,910]) im.show() enhancer = ImageEnhance.Sharpness(im) enhancer.enhance(2.0).show() Convert the image to RGB and then filter it. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___

Re: [Image-SIG] playing with CMYK images

2009-03-02 Thread Charlie Clark
found this a rude first post. Can you please provide some details as to what's gone so horribly wrong. I would be surprised if the problem is actually with PIL per se and not with one of the underlying C libraries. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +

Re: [Image-SIG] OverflowError on image save

2009-03-08 Thread Charlie Clark
handful users have access to it since it is still in a closed test phase. Hiya Wichert, I'm just curious as to why a .BMP is likely to be a common format - is the image coming as .BMP from some common windows control? Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +4

Re: [Image-SIG] Python 3 support

2009-03-19 Thread Charlie Clark
the people who maintain them. In the meantime I think it is reasonable to expect users to target Python 2.6 which should encourage more Python 3.0 stuff without breaking important aspects of backward compatability for many projects. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D

Re: [Image-SIG] ANN: PIL 1.1.7 alpha 2 (March 28, 2009)

2009-04-02 Thread Charlie Clark
lated joke) ;-) Looking forward to the new version. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

[Image-SIG] Comparing images

2011-04-01 Thread Charlie Clark
age to the right size and comparing it with ImageChops.difference() with the template but I'm not sure how to interpret the results - I had hoped for either a largely black or white image but I'm largely getting the inverse of the logo. Any tips? Charlie -- Charlie Clark Man

Re: [Image-SIG] Comparing images

2011-04-01 Thread Charlie Clark
Am 01.04.2011, 20:30 Uhr, schrieb Charlie Clark : Hi, I need to check lot of images to see if they have the right logo in them. Fortunately I know the co-ordinates of where the logo in the image should be but I'm not sure on the best way to compare a selection from the image w

Re: [Image-SIG] how to read metadata from jpg

2011-04-06 Thread Charlie Clark
Am 01.04.2011, 17:03 Uhr, schrieb Dennis Huynh : how do you read the metadata from a jpeg with PIL? What module do I use? Hi Dennis, from PIL import ExifTags Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel:

Re: [Image-SIG] Image module destructor

2011-04-14 Thread Charlie Clark
: del img I don't think that explicitly invokes a destructor but it does stop you doing *anything* with the image subsequently. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobil

Re: [Image-SIG] memoryError in FpxImageUploadPlugin.py

2011-04-16 Thread Charlie Clark
orce it in the form handling. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@python.

Re: [Image-SIG] Minor problem building PIL on x86_64 under virtualenv

2011-04-18 Thread Charlie Clark
is PIL packaged for use with pip, easy_install and buildout. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG mail

Re: [Image-SIG] Natty: Python Imaging Library in a virtualenv - no JPEG or PNG support

2011-05-12 Thread Charlie Clark
recently. For virtualenv's the best choice, however, is to use the Pillow fork of PIL which runs fine with easy_install or pip. Oh, and try to avoid "activate" unless you're very confident of what you're doing. Charlie -- Charlie Clark Managing Director Clark Consulti

Re: [Image-SIG] "ImportError: The _imaging C module is not installed."

2011-05-12 Thread Charlie Clark
dates the subsystem between OS releases. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@p

Re: [Image-SIG] Image processing to auto adjust colors in python ?

2011-05-16 Thread Charlie Clark
sing algorithm or find a suitable filter you can do this in PIL. However, you mind try applying filters directly in ffmpeg before you create a thumbnail. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +4

Re: [Image-SIG] Problems with ghostscript

2011-05-18 Thread Charlie Clark
ostscript raise IOError("gs failed (status %d)" % status) IOError: gs failed (status 32512) What causes the problem?? Hi Johannes, have you got Ghostscript installed on your system? It looks like you are getting an error because PIL can't find it. Charlie -- Charlie Clark Managin

Re: [Image-SIG] Png24 to GIF image size

2011-05-20 Thread Charlie Clark
the case here. Nah, Unisys patented the format which essentially uses a 256 colour palette for compression. LZW compression doesn't make much difference on this file. I *think* the problem is you are not creating the palette very intelligently there are only 20 colours in the palette.

Re: [Image-SIG] questions on the Python Imaging Library

2011-05-20 Thread Charlie Clark
to work with the original bitmap. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@python

Re: [Image-SIG] Codes with image does do not run

2011-05-28 Thread Charlie Clark
ftware. Otherwise we need to know the precise error you are getting. By the way Python 2.3 is very old and not supported you should consider updating to Python 2.7 if possible. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseld

Re: [Image-SIG] Creating a 187x250 thumbnail from this (CMYK) JPG results in a 1.91 MB PNG; 32-bit data written instead of reported 24-bit?

2011-06-08 Thread Charlie Clark
l, apply this method to a copy of the original image. This method returns None. """ I read this to mean that the original image is preserved, and indeed, when I open the PNG in Photoline I see something much close to the CMYK original (no dayglow green). If you want a new image

Re: [Image-SIG] PIL 1.1.7 and Python 2.7.1

2011-06-14 Thread Charlie Clark
need 64-bit you will have to compile PIL for Windows using Visual Studio. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___

Re: [Image-SIG] Can't get selftest.py to pass

2011-06-24 Thread Charlie Clark
t think that PIL compiles out of the box on Mac OS which is why I always recommend using either MacPorts (isn't there also a package for Fink?) or pip install Pillow. Probably worth checking the portsfile to see what things need tweaking. Charlie -- Charlie Clark Managing Director Clar

Re: [Image-SIG] webp support?

2011-06-29 Thread Charlie Clark
Am 29.06.2011, 13:45 Uhr, schrieb Fredrik Lundh : I just added WebP support to the development tree; see: http://offline.effbot.org/europython for code snippets and links. Thanks very much for this effbot! webp is a great image format. Charlie -- Charlie Clark Managing Director Clark

Re: [Image-SIG] HELP HELP

2011-08-04 Thread Charlie Clark
on. You can probably install PIL for your system using aptitude. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SI

Re: [Image-SIG] pil rotate 90 bug ?

2011-08-04 Thread Charlie Clark
can't see any difference between them. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist - Image-S

Re: [Image-SIG] Help

2011-08-18 Thread Charlie Clark
. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/list

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

2011-08-18 Thread Charlie Clark
you have already installed Python your best bet is to enter: sudo pip install pillow In Terminal Charlie Clark -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-

Re: [Image-SIG] PIL for python 3.2

2011-08-26 Thread Charlie Clark
Ingo, for support on the fork you should contact it's developer. You might need to create a debug build of Python to find out exactly what's not working. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Te

Re: [Image-SIG] float rgba list -> Image

2011-08-31 Thread Charlie Clark
some functional programming so that you are not using memory for transitional data structures. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-

Re: [Image-SIG] What is the best way to anti-alias a very large resolution image in PIL

2011-09-13 Thread Charlie Clark
converting the file to 8bit with a palette and this successfully downsamples but the ANTIALIAS is not performed. What am I doing wrong? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobil

Re: [Image-SIG] Help installing PIL

2011-09-17 Thread Charlie Clark
at is that from Snow Leopard on the builds are generally x86_64 only. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Imag

Re: [Image-SIG] PIL 1.1.7 PNG bug?

2011-09-22 Thread Charlie Clark
like a reasonable fix I may consider it. I'd suggest that the issue be extended to include a test file and result and tested against PIL 1.1.7. As a happy user of Pillow I wouldn't like it to see it gain any internal patches. Charlie -- Charlie Clark Managing Director C

Re: [Image-SIG] PIL 1.1.7 PNG bug?

2011-09-22 Thread Charlie Clark
hook up to the Windows binaries if possible. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist -

Re: [Image-SIG] PIL for python 2.7

2011-11-03 Thread Charlie Clark
need the 64-bit Windows binaries. Microsoft makes life difficult by not providing a compiler with their operating system. Fortunately, Chris Gohlke maintains a large library of Windows binaries of Python packages: http://www.lfd.uci.edu/~gohlke/pythonlibs/ Look for "amd64" Charlie

Re: [Image-SIG] PIL help

2011-12-29 Thread Charlie Clark
27-pip sudo pip install scipy pillow ndimage "Pillow" is a version of PIL that is very easy to install. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___

Re: [Image-SIG] gif convert png wrong

2011-12-29 Thread Charlie Clark
EOFError: break im.save("test%02d.png" % i) Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG

Re: [Image-SIG] 答复: gif convert png wrong

2011-12-30 Thread Charlie Clark
t guess! More importantly, you are unnecessarily creating copies of each frame in memory just to save the frames to disk. However, as disk IO seems to be the bottleneck this has little practical implications for this image but could be important in another situation. Charlie -- Charlie

Re: [Image-SIG] JPEG libraries on python virtual environments

2012-01-19 Thread Charlie Clark
Am 19.01.2012, 22:39 Uhr, schrieb Bryce2 Nesbitt : pip uninstall PIL sudo apt-get install libjpeg8-dev pip install PIL Try pip install pillow. Pillow is a fork of PIL that is easier to use with setuptools. Charlie -- Charlie Clark Managing Director Clark Consulting & Research Ge

Re: [Image-SIG] Adding Python 3 support

2012-10-09 Thread Charlie Clark
or lots of different people. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Image-SIG maillist - Image-SIG@python.org http://m

[Image-SIG] Mailing list problems

2012-11-05 Thread Charlie Clark
Is is just me or do we have occasional bottlenecks where e-mails take days to come through? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-

Re: [Image-SIG] Mailing list problems

2012-11-07 Thread Charlie Clark
at is not very nice for people just starting out with images and Python. Is this bottleneck with new members or simply approving e-mails? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +4

Re: [Image-SIG] Pillow 2.0.0 released

2013-03-16 Thread Charlie Clark
Am 15.03.2013, 18:44 Uhr, schrieb Alex Clark : FYI, Pillow 2.0.0 released: - https://pypi.python.org/pypi/Pillow/2.0.0 Congratulations on adding Python 3 support! Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217