Ondrej Baranovič
Ondrej Baranovič
Pillow 9.3.0 was due for release on 2022-10-15, but will be delayed a few days due to the delay with the Python 3.11 release. The current estimate is 2022-10-25, you...
I've added brotli to the #6562 changes for Windows wheels.
The `ImageDraw.textXXX` functions use `FreeTypeFont.getXXX` functions internally, and those do have documented return values (e.g. [`FreeTypeFont.getlength`](https://pillow.readthedocs.io/en/stable/reference/ImageFont.html#PIL.ImageFont.FreeTypeFont.getlength)). It seems I simply forgot to copy those to the `ImageDraw` functions when adding...
For an exact (but perhaps overly specific and thus not helpful) explanation, the `getlength` function returns the advance length as seen in the diagrams in the [FreeType tutorial](https://freetype.org/freetype2/docs/tutorial/step2.html), while the...
I'm not entirely sure I understood your comment, but to replace the old function, you could use ```python left, top, right, bottom = font.getbbox(text) size = (right - left, bottom)...
> Im using the size, to align a few numbers right, so 1-3 digits max It sounds like `draw.text(..., anchor='ra')` should be able to replace your calculation, however, that is...
cgohlke was providing a ``libraqm‑0.7.1.dll.zip``, which contains both a libraqm.dll for older Pillow versions and a fribidi-0.dll for newer Pillow versions, as well as the relevant license files: [libraqm-0.7.1.dll.zip](https://github.com/python-pillow/Pillow/files/9424870/libraqm-0.7.1.dll.2.zip) This...
EDIT: You beat me by a few minutes :) If I understand this snippet initializing new images correctly, there are already existing modes with `im->pixelsize==2` that do in fact use...
FWIW this list may be helpful for implementing support for >4 byte images, tracked in #1888.
Looking at `ImageTk.PhotoImage`, if it is passed an image with a palette, it automatically converts the image to the mode of the palette before passing it to tkinter: https://github.com/python-pillow/Pillow/blob/b6348d9b2d14d17c28da769d0483b8d486274efb/src/PIL/ImageTk.py#L108-L112 However,...