[03:46:00] <prooty> hello. i am trying to install Pillow 2.3.0 in Ubuntu 12.10 with Python 2.7.3.
[03:46:27] <prooty> i am trying to include tkinter support, so i installed tcl8.5-dev and tk8.5-dev.
[03:46:52] <prooty> however after building Pillow tkinter support is still not available.
[03:47:15] <prooty> i also tried with tcl8.4-dev and tk8.4-dev.
[04:08:13] <prooty> have resolved my issue. python-tk also needs to be installed.
[06:22:12] <prooty> Pillow hangs when trying to open a PostScript document. i know it is not supported, but a better behavior is to timeout or raise an error rather than hanging.
[10:28:33] <terseus> I've been digging in the pillow source recently, trying to investigate issue https://github.com/python-imaging/Pillow/issues/367
[10:29:55] <terseus> I've seen that the functions polygon8, polygon32 and polygon32rgba are exactly the same, except in the calls to the hline functions, where it calls the correspondent one
[10:31:03] <terseus> is there any reasoning behind this copy&pasted code?
[10:31:24] <terseus> I mean, why not refactor it so all the polygon functions share the same code base?
[11:13:24] <terseus> you can create a new empty image, paste the original image in the new with the appropiate coords and fill the rest with white pixels
[11:14:09] <tapia> terseus: what about Image.transform?
[11:15:51] <terseus> I never used it so I don't know, but from reading the doc should work, too
[11:28:50] <tapia> terseus: the new empty image and paste the original works fine
[16:42:08] <terseus> and what do you think, it's feasible changing the behavior of polygon functions without breaking other library components?
[16:42:50] <wiredfool> It's pretty much a leaf node. I think it's called from a few places in Draw.c, but I don't think that there's any calls from outside
[16:45:17] <wiredfool> I'm only seeing the 4 function calls to polygon in draw.c
[16:46:08] <terseus> good, then I will try to modify them and will see if all the tests pass
[16:46:18] <wiredfool> you may need to add additional tests
[16:46:48] <terseus> what tests do you recommend me to add?
[16:47:18] <wiredfool> well, since everything passes right now in master, bug #367 is untested
[16:47:30] <wiredfool> tho, I think I've got a test for it in a branch somewhere
[16:47:46] <terseus> yeah I found it, I'm using it now in my branch
[16:48:53] <terseus> also, as a side note, I noted that all the polygon functions (8, 32 and 32argb) have the same logic, only the calls to the hline functions change
[16:50:24] <terseus> my idea is, first refactor them so all share the same code base, probably creating a function polygon_generic that have the logic and gets a pointer to a function with the same signature as hline
[16:50:34] <wiredfool> feel free to refactor/dedup
[16:50:44] <wiredfool> I suspect you'll find the same thing in line
[16:50:56] <wiredfool> as it only varies by point function
[16:54:09] <terseus> then, will take a look at line functions
[17:00:38] <wiredfool> good luck, write when you find good test results
[17:00:48] <wiredfool> and if you need help, I lurk
[18:00:13] <tomswirly> Good day, all. I'm attempting to simply create an ImageFont of a given height, but I am getting poor results. The following gist has an example: https://gist.github.com/rec/9299379
[18:00:33] <tomswirly> I wasn't able to find any font where the "advertised" height was the same as the "actual" height, in fact!
[18:16:12] <wiredfool> I got to the point where I proved that we couldn't have data integrity. and then I ported to postgresql
[18:16:50] <tomswirly> you can have data integrity IF you denormalize everything and don't mind everything being locked during your really slow updates. :-D
[18:17:16] <wiredfool> it wouldn't have been half so bad if it was web scale, but when you're stuck on one machine max per customer and you get a big customer...
[18:26:31] <tomswirly> and probably too hard for other bathroom paper uses.
[18:26:44] <wiredfool> yeah. recycled grey office paper
[18:27:48] <tomswirly> all right, I think I have a handle on this problem now. I'm going to keep my .ttf code with all the tweaks and add a separate .pcf handler, which will probably give better results.
[18:28:49] <tomswirly> have a great day, and keep your caffeine level up! :-)