[Image-SIG] [PIL] ImageColor.getcolor incorrect for grayscale

2009-01-26 Thread Tim Hatch
I think I've discovered a bug when using named colors, due to using integer division too early in getcolor, which makes it disagree with the color conversion done in ImagingConvert for a large number of colors (106 of the 147 named colors). To start off, I'm assuming that for grays where

Re: [Image-SIG] Issues generating large PNGs

2009-01-29 Thread Tim Hatch
Is there an upper limit to the size of PNG files? How big is yours? I was able to create a 17600x2400 one containing just a single color and it works with identify and Preview.app so it's not a dimension issue. Tim ___ Image-SIG maillist -

Re: [Image-SIG] can't compile aggdraw on ubuntu

2009-02-03 Thread Tim Hatch
i can't get the aggdraw module (1.2a3-20060212) to compile on a standard i386 ubuntu box. gcc (version 4.2.4) and build-essential are installed. here's the output. sorry that some is in german, but you'll get it. i have no idea where to look. google didn't say anything either.

Re: [Image-SIG] unable to import imaging c module

2009-02-10 Thread Tim Hatch
ImportError: The _imaging C module is not installed What do you get when you run python -c import PIL._imaging How did you install PIL? Are you running a custom-compiled Python? Is the host 32-bit? Tim ___ Image-SIG maillist -

Re: [Image-SIG] IOError: unable to identify image file(possibly weird EXIF data?)

2009-02-12 Thread Tim Hatch
Does anyone know what might be going wrong here, or why PIL might be having trouble with these images? The issue with alexken.jpg appears to be slightly corrupt. Photoshop CS3 complains This file contains file info data which cannot be read and has been ignored. (but still loads the EXIF

Re: [Image-SIG] playing with CMYK images

2009-03-02 Thread Tim Hatch
i have just tried using PIL to crop and resize CMYK images (with CMYK as end result, no color mode conversion). I must say i was surprised how awfull the result look. Even though PIL is not supposed to touch the color mode, colors is totally fucked up in the modified image. Can you

Re: [Image-SIG] playing with CMYK images

2009-03-02 Thread Tim Hatch
Thanks for the explanation, I followed your link to the thread but I couldn't find the attachement you mentioned in it (because I'd like to use your patch !). Try http://mail.python.org/pipermail/image-sig/2006-April/003871.html instead. Tim

Re: [Image-SIG] ZLIB (PNG/ZIP) support not available

2009-03-05 Thread Tim Hatch
Although zlib RHEL’s rpms are installed (zlib-1.2.1.2-1.2.i386 and zlib-1.2.1.2-1.2.x86_64)... Make sure you have the dev versions of those packages as well, namely zlib-devel, freetype-devel, etc. Tim ___ Image-SIG maillist -

Re: [Image-SIG] PIL and embedded ICC profiles

2009-03-06 Thread Tim Hatch
Except for the JPEG hack, Florian's original patch looks pretty quite clean to me. Right, I just fixed where hunks didn't apply and adjusted to be more PEP8. That diff link looks a bit strange to me, though - looks more like status output than diff output. Am I missing something, or did

Re: [Image-SIG] PIL installation error

2009-11-11 Thread Tim Hatch
I get the following error messages trying to install PIL: ... _imagingtk.c:20:16: error: tk.h: No such file or directory Looks like you have _tkinter available but it can't find your tk.h. Assuming you have the tcl headers, adjust TCL_ROOT in setup.py appropriately. Tim