Andrew Murray

Results 761 comments of Andrew Murray

I've created https://github.com/python-pillow/Pillow/pull/8568 as an alternative to this, using my suggestion of logging.

#8568 has been merged instead.

Just to provide a self-contained code example, I agree that ```python from PIL import Image im = Image.new("I;16", (1, 1)) new_im = im.resize((640, 480), resample=Image.Resampling.LANCZOS) ``` is hitting https://github.com/python-pillow/Pillow/blob/56e3147403d1785141b25f1d822a93e86c1deb98/src/libImaging/Resample.c#L567-L577 >...

This is still an open issue, so it is something to be worked on. The original post here doesn't mention PNGs, so you might be talking about a slightly different...

I've created #8422 to resolve this.

Just an explanation from the code. https://github.com/python-pillow/Pillow/blob/1f5be894b91a00731ca328b3352eaf69eaee766c/src/libImaging/Filter.c#L326-L332 means that it doesn't support `I`, `I;*`, `F` or `BGR;*`.

PR #7108 has been merged, fixing this for I mode.

![Screenshot 2024-01-10 at 8 10 24 pm](https://github.com/python-pillow/Pillow/assets/3112309/3a1a48a3-9ac5-4fe5-824c-bdbef70b9575) I don't see how a function that "transforms 3-channel pixels" applies to a 1 channel image. Could you describe in more detail what...

> Now I find that Pillow only supports 8-bit color depth for 3-channel images Yes, see #1888 > so the only way is to convert the 10-bit images to 8-bit...

#8438 has been merged to support I;16 modes with `ImageFilter.BLUR`. Pillow 11 is due to be released in a week with this feature.