Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

Python Imaging Library (Fork)

Results 418 Pillow issues
Sort by recently updated
recently updated
newest added

Here is a 16-bit grayscale image: ![test](https://user-images.githubusercontent.com/2358339/36452647-4647c7ae-168d-11e8-80b9-43bf34a2d8f3.png) It clearly contains a gradient of grays. If I open it with Pillow, convert it to 8-bit grayscale, and save it, like so......

Enhancement
Hasn't worked in 20 years
Conversion

Whenever a function needs to extrapolate values of non-existing pixels (i.e. pixels outside of the image), it should be possible to specify the extrapolation method to use. The extrapolation methods...

Enhancement

### What did you do? ```python from PIL import Image Image.MAX_IMAGE_PIXELS = 1

TIFF

### What did you do? This image, named `test-in.png`, has 508 distinct colors according to `getcolors()`. ![test-in.png](https://user-images.githubusercontent.com/36807140/104255683-9ee2b180-5447-11eb-925e-fc657b0dde24.png) I tried to quantize it to 256 colors with the following code. ```python...

For finding duplicates, it would be nice if Pillow would include some perceptual hashing algorithm: https://en.wikipedia.org/wiki/Perceptual_hashing The real use case for me is that my in my photo collection I...

Enhancement

I learned this from doc: > xy – Four points to define the bounding box. Sequence of either [(x0, y0), (x1, y1)] or [x0, y0, x1, y1]. The second point...

Bug
Duplicate

This is a feature request. Would it be within the scope of pillow to have a function that identifies dominant colors within an image? The [relevant question](https://stackoverflow.com/questions/3241929/python-find-dominant-most-common-color-in-an-image#3244061) on StackOverflow has...

Enhancement

### What did you do? ```python import numpy as np from PIL import Image import cv2 def pil_linear(im, shape_wh): im = Image.fromarray(im.astype("float32"), mode="F") return np.array(im.resize(shape_wh, Image.BILINEAR)) def cv_linear(im, shape_wh): return...

### What did you do? python-3.6 with Pillow-5.2.0 ![leaf-gr](https://user-images.githubusercontent.com/1108546/45062236-50b78980-b0a8-11e8-8ffe-63d449e80e05.jpg) Download this image as leaf-gr.jpg then start python and do ```python from PIL import Image, ImageOps im = Image.open('leaf-gr.jpg') ImageOps.autocontrast(im, cutoff=2).show()...

Bug

### What did you do? Load the image linked below, convert it to float and resize it with LANCZOS. ### What did you expect to happen? An image with positive...

Bug