Pillow
Pillow copied to clipboard
Python Imaging Library (Fork)
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...
The GIF file `test_extents()` test https://github.com/python-pillow/Pillow/blob/6a9acfa5ca2b3ba462b086e4af776993bbd94a72/Tests/test_file_gif.py#L1381-L1390 tests that an image with two frames, where the second frame is offset from the first, will change the size of the image. The...
Highlights: * Adding support for Python 3.13: https://github.com/python-pillow/Pillow/pull/8181 * Dropping Python 3.8: https://github.com/python-pillow/Pillow/pull/8183 * Removing deprecations: https://github.com/python-pillow/Pillow/pull/8182 ## Main Release Released quarterly on January 2nd, April 1st, July 1st and...
Helps #8226
### What did you do? - Create a GIF with these two identically sized (250x217) frames: `green.png` and `red.png`   ```python from PIL import Image green = Image.open("green.png") red...
### What did you do? Im trying make a simple upload from iPhone 14 and save the image. It works from my iPhone 13 but not for iPhone 14. I...
I have been working on with a project in matplotlib. I'm trying to display tamil texts in a pie chart. I did downloaded and specified the appropriate font paths (In...