[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: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