Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

Python Imaging Library (Fork)

Results 418 Pillow issues
Sort by recently updated
recently updated
newest added

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

### What did you do? Attempted to use imsize and save to convert an EMF to a PNG. For certain EMFs, the final aspect ratio is incorrect. [image94.zip](https://github.com/user-attachments/files/17350860/image94.zip) ```python filein...

### What did you do? I opened/created a new image with XMP and Exif data. I saved the image using `save()` without passing the XMP/Exif data. ### What did you...

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...

Testing

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...

The following code that worked in Pillow 10.4 no longer works with Pillow 11.0. ```python import pickle from io import BytesIO from PIL import Image im = Image.open("books.jpg") p =...

Resolves #8029 In order to add type hints to the following `Image` methods ```python def __enter__(self): def _close_fp(self): def __exit__(self, *args): ``` I've made a few changes. `Image` now has...

Type hints

Test the image stats of all image modes. This should give an indicator if a code change changes the image data anywhere.

Testing

An incorrect hue was being calculated when "h/6 is negative" because Python's `%` and C's `fmod` use a slightly different strategy. So to match Python, we need to implement it...

Conversion