python-imaging-library
Python Imaging Library (PIL) Drawing--Rounded rectangle with gradient
I am trying to use PIL to draw a rectangle with rounded corners and a gradient fill for the color. I found a cool web site ( http://web.archive.org/web/20130306020911/http://nadiana.com/pil-tutorial-b[详细]
2023-04-13 04:36 分类:问答How to apply a function to each 3rd axis element in a numpy array?
If I have a numpy array like so: [[[137 153 135] [138 154 136] [138 153 138] ..., [134 159 153] [136 159 153][详细]
2023-04-12 20:29 分类:问答Cropping image - Image.crop function not working
I have following line of code for image cropping im = Image.open(\'path/to/image.jpg\') outfile = \"path/to/dest_img.jpg\"[详细]
2023-04-12 15:30 分类:问答PIL image show() doesn't work on windows 7
I would like to show an image using python on windows and other platforms. When I do: from PIL import Image[详细]
2023-04-12 13:40 分类:问答Python PIL: Create indexed color image with transparent background
I wonder how I could create a image with a transparent background and only 2 indexed colours (red and blue) to minimise the file size?[详细]
2023-04-12 03:41 分类:问答numpy.array of an "I;16" Image file
I want to use TIFF images to effectively save large arrays of measurement data. With setting them to mode=\"I;16\" (corresponding to my 16 bit data range), they yield 2MB files (~1000x1000 \"pi开发者_[详细]
2023-04-11 22:25 分类:问答Python API for C++
I have a code on C++, that creates file and writes data to it. Is it possible to use Python\'s functions to use Python\'s functionality in my C++ 开发者_JAVA百科code? For example, I\'d like to do this[详细]
2023-04-11 20:36 分类:问答PIL - draw multiline text on image
I try to add text at the bottom of image and actually I\'ve done it, but in case of my text is longer then image width it is cut from both sides, to simplify I would like text to be in multiple lines[详细]
2023-04-11 11:40 分类:问答Finding a subimage inside a Numpy image
I have two Numpy arrays (3-dimensional uint8) converted from PIL images. I want to find if the first image contains the second image, and if 开发者_JAVA技巧so, find out the coordinates of the top-lef[详细]
2023-04-11 06:20 分类:问答'tuple' object does not support item assignment
I am using the PIL library. I am trying to make an image look red-er, this is what i\'ve got开发者_C百科.[详细]
2023-04-11 05:15 分类:问答