PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Saturday the 13th of February, 2016

(Back to #pil overview) (Back to channel listing) (Animate logs)
[03:31:29] <Len> hello guys
[03:35:09] <Len> I need some help :)
[03:35:31] <Len> http://wklej.org/hash/3c41c2c4d12/ my code looks like that, I want to resize Image to size returned from multiline_textsize
[03:35:40] <Len> but... it's not working.
[03:36:06] <Len> Also been trying to init Draw without image, get calculations, then create Image.. but it was impossible
[03:36:33] <Len> Any clues?
[03:37:44] <Len> Also other question, it is possible to pass withing string colors?
[03:37:58] <Len> like.. I want use multiline_text but with difrent colors inside of string
[03:38:29] <Len> \color1 TEXT\n\color2 TEXT...
[03:54:52] <Len> okay... solved it by creating veryy big canvas and after calculations img = img.crop(((W/2)-(w/2), (H/2)-(h/2), (W/2)+(w/2), (H/2)+(h/2)))
[03:55:05] <Len> if there is any other way, please inform me
[20:24:58] <FLHerne> Evening
[20:25:58] <FLHerne> I'm writing a program for editing game spritesheets; there's a single palette color that's used for borders between rectangular sprites
[20:27:06] <FLHerne> Is there any function I can use to find the rectangle of the sprite containing a given pixel?
[20:28:08] <FLHerne> Plan B is just to start with that pixel, and test a pixel at a time in each direction until I find an edge
[20:32:59] <rjt> Noob question here about to get jpeg installed with pil. jpeg seems to be a straight C library required for Pillow.
[20:33:03] <rjt> File "setup.py", line 516, in build_extensions
[20:33:05] <rjt> ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
[20:39:31] <FLHerne> rjt: You'll need libjpeg, use your distro's package manager assuming you're on Linux
[20:40:11] <rjt> libjpeg8 and libjpeg62 are already installed.
[20:40:25] <FLHerne> "libjpeg8 libpng12-0 libfreetype6 zlib1g" is the list of required packages on Ubuntu according to some random post on the interwebs
[20:40:37] <FLHerne> Hm
[20:40:58] <rjt> Do they need to be the dev versions? headers?
[20:41:36] <FLHerne> I don't believe so
[20:41:43] <rjt> FLherne, those are all installed and the latest version.