Pillow
Pillow copied to clipboard
Python Imaging Library (Fork)
Changes proposed in this pull request: * Refactored DDS reader/writter * Add Tile namedtuple for code readability * Add support for reading/writing single channel DDS textures
### What did you do? Was printing CJK characters to an image but got an `AttributeError`. No doubt the default font wasn't supporting such characters. ### What did you expect...
Pillow (and PIL) is currently able to open 8 bit per channel multi-channel images (such as RGB) but is able to open higher bit depth images (e.g. I16, I32, or...
Hello, I want to get colorSpace from image exif,my code is below: ```python from PIL import Image current_image = Image.open("1.jpg") exifs = current_image.info.get("exif") # bytes data ``` but the exifs...
### What did you do? I opened the images using Pillow and printed their detected size. ### What did you expect to happen? The size to be reported correctly. This...
Hi team, I have some images in tiff format that came from many different people and that I need to convert do JPG. Both images are ok and visible without...
Memory leak bugs when a new reference is only passed to a non-stealing API (static analyzer reports)
* API [`PyDict_SetItemString`](https://docs.python.org/3/c-api/dict.html#c.PyDict_SetItemString) does not steal a reference from the third argument. * API [`PyDict_SetItem`](https://docs.python.org/3/c-api/dict.html#c.PyDict_SetItem) does not steal a reference from the last argument. * API [`PyList_Append`](https://docs.python.org/3/c-api/list.html#c.PyList_Append) does not steal...
New reference is returned here: https://github.com/python-pillow/Pillow/blob/68e39cba431680105c0e0f1a54371b7028e8da9a/src/_imaging.c#L4253 Function returns without decreasing the refcnt. https://github.com/python-pillow/Pillow/blob/68e39cba431680105c0e0f1a54371b7028e8da9a/src/_imaging.c#L4256 Internal Report ID: 3fa97f --- New reference is returned here: https://github.com/python-pillow/Pillow/blob/68e39cba431680105c0e0f1a54371b7028e8da9a/src/_imagingft.c#L1071 Function returns without decreasing the refcnt....
1. A new reference is returned and assigned to `seq`. https://github.com/python-pillow/Pillow/blob/68e39cba431680105c0e0f1a54371b7028e8da9a/src/_imagingft.c#L301 2. `seq` is only passed to APIs that do not steal a reference from the argument before it goes...