Category "python-imaging-library"

Efficient way to shift image pixels in python

Trying to find a way to efficiently shift image pixels in python. Ultimately want to display the results on screen after each shift. For example, pixel at 1920,

How I can load a font file with PIL.ImageFont.truetype without specifying the absolute path?

When I write the code in Windows, this code can load the font file just fine: ImageFont.truetype(filename='msyhbd.ttf', size=30); I guess the font location i

Python PIL Outline image increase thicknesses

I know how to find the edges from a picture. But I would like to have the outline edges be thicker for example width 9. from PIL import Image, ImageFilter

Automatically cropping an image with python/PIL

Can anyone help me figure out what's happening in my image auto-cropping script? I have a png image with a large transparent area/space. I would like to be abl

Installing PIL on OS X Lion: initialization from incompatible pointer type

I want to run python's ndimage to do some image analysis. I have a 64-bit Mac running OSX Lion and Python 2.7. When I tried to run commands from ndimage comman

Image.open() cannot identify image file - Python?

I am running Python 2.7 in Visual Studio 2013. The code previously worked ok when in Spyder, but when I run: import numpy as np import scipy as sp import math

Multicolored text with PIL

I'm creating a web-app that serves a dynamic image, with text. Each string drawn may be in multiple colors. So far I've created a parse method, and a render m

Problem in image processing code using pillow?

I have tried to create a filter which transforms a picture. Example: The first pixel takes the color from next one, and the last one takes the color from first