Andrew Murray

Results 761 comments of Andrew Murray

If you're just talking about `horiAdvance`, then that should be the value returned by [`getlength()`](https://pillow.readthedocs.io/en/stable/reference/ImageFont.html#PIL.ImageFont.FreeTypeFont.getlength) for horizontal directions. https://github.com/python-pillow/Pillow/blob/9d39fe6adac233ccd26ba20bff9adda53a1ec89d/src/_imagingft.c#L486 https://github.com/python-pillow/Pillow/blob/9d39fe6adac233ccd26ba20bff9adda53a1ec89d/src/_imagingft.c#L555

The PR has received some feedback - https://github.com/python-pillow/Pillow/pull/9160#issuecomment-3405200697 > I'm on the fence with this. It feels outside the core focus of Pillow, and it's not too tricky to do...

> seems like a fun challenge. If you're interested in creating a pull request, feel free to do so. > Here is the patent information Looking at https://en.wikipedia.org/wiki/JBIG, I see...

https://github.com/python-pillow/Pillow/pull/1938#issue-157621822 > The decoders are all in C, a fast but unsafe language. Python is significantly slower, but safe. This is a tradeoff that we should be able to make....

Ok, cool, so you've figured out how to build it from source. As for when we will distribute wheels, we use https://github.com/pypa/cibuildwheel as part of our process. Their habit is...

Just to mention for anyone else reading this - individual users can already vary their individual experience by setting `MAXBLOCK` themselves. ```python from PIL import ImageFile ImageFile.MAXBLOCK = 65536 *...

I would guess ```python import numpy as np import pyarrow as pa from PIL import Image img = Image.new("RGB", (12, 12)) np.array(pa.array(img)) ``` but it doesn't seem faster to me.

> `pa.array(img).to_numpy(zero_copy_only=True)` doesn't seem to work in my case Just in case it is something interesting that we should consider in the future, could you explain this slightly more?

This may be a longer discussion, but here are my thoughts. > This will eagerly trigger load() which may not be necessary if we end up not using the image's...

In my personal opinion, I don't see the need for this request. I think there's a clear way to restructure the user code instead. If many users came and requested...