Andrew Murray
Andrew Murray
Currently, `font` is an optional parameter for `FreeTypeFont` and `truetype()`. https://github.com/python-pillow/Pillow/blob/6dd4b3c826512b6e50f7343951bcb3650087119b/src/PIL/ImageFont.py#L198-L211 https://github.com/python-pillow/Pillow/blob/6dd4b3c826512b6e50f7343951bcb3650087119b/src/PIL/ImageFont.py#L758-L764 However, if it is `None`, then an error is raised. ```pytb >>> from PIL import ImageFont >>> ImageFont.FreeTypeFont()...
Resolves #8255 Page 7 of https://cdn.standards.iteh.ai/samples/36628/10393e6ddb5c4dbc9513ae89230d97f9/ISO-IEC-15444-1-2000-Cor-2-2002.pdf explains that `npc` is > Number of components created by the application of the palette When there are four components, this PR changes the...
```python from PIL import Image, ImageMath A = Image.new("L", (1, 1)) print(ImageMath.lambda_eval(lambda args: args["A"] == args["A"], A=A)) ``` currently gives `` This PR suggests changing the output to a more...
Helps #8226
https://github.com/tweepy/tweepy/pull/2181 started the ball rolling by suggesting testing Python 3.13, and raising a `ModuleNotFoundError` if `imghdr` could not be imported when it was to be used. Since the code already...
Resolves #8462 Corrects a typo when calculating the X DPI of an EMF image - `x1 - y0` should be `x1 - x0`. https://github.com/python-pillow/Pillow/blob/331e4e751733eb0af018602ef26746a7e0571107/src/PIL/WmfImagePlugin.py#L130-L132
At the start of test_file_jpeg2k.py, an image is opened. https://github.com/python-pillow/Pillow/blob/d59b169ed257ca14d86c90dbf3384b8b3999fc5c/Tests/test_file_jpeg2k.py#L32-L33 It is then used throughout the tests. https://github.com/python-pillow/Pillow/blob/d59b169ed257ca14d86c90dbf3384b8b3999fc5c/Tests/test_file_jpeg2k.py#L103-L110 Rather than re-using the same image instance throughout the tests, and allowing...
Resolves #8479 Typically, XMP data is only saved to an image through an argument when saving, such as `im.save("out.jpg", xmp=b"test")`. #8286 included [a commit](https://github.com/python-pillow/Pillow/pull/8286/commits/be34a7da4bb25a660d83abee3495626f221e949d) to allow XMP data to be...
Resolves #8472