Pillow
Pillow copied to clipboard
Python Imaging Library (Fork)
Hello, when i handle an image with mode sRGB use pillow, how to save it with mode sRGB? Thanks very much!
This also indirectly breaks PIL.ImageOps.exif_transpose(). ### What did you do? ```python PIL.Image.open("x.jpg").getexif().tobytes() ``` The image is attached: [x.jpg](https://user-images.githubusercontent.com/2303841/184104418-0eb54b27-50f1-4f3e-88f6-07329313faf2.jpg) ### What actually happened? throws: ``` File .../.venv/lib/python3.10/site-packages/PIL/Image.py:3589, in Exif.tobytes(self, offset) 3587...
Resolves #6492 The issue provides an image where tag 271 has type UNDEFINED. https://www.awaresystems.be/imaging/tiff/tifftags/make.html states tag 271 should have type ASCII. The tag is loaded as bytes then, not a...
Converted things like Dither.FLOYDSTEINBERG to PIL.Image.Dither.FLOYDSTEINBERG to match other docstrings and to as that is the correct code.
Resolves #6480 By raising `ImageDraw.ImageDraw.font` from an instance variable to a class variable, a default ImageDraw font can be set by the user. ```python from PIL import ImageDraw, ImageFont ImageDraw.ImageDraw.font...
Resolves #6520 Related to * https://github.com/python-pillow/Pillow/issues/2635 * https://github.com/python-pillow/Pillow/issues/2664#issuecomment-328666279 Changes proposed in this pull request: * Release python GIL when converting images using matrix operations Thank you for reviewing!
Resolves #6422 The issue has discovered that tensorflow supports converting Pillow images using `__array__`, but not `__array_interface__`. One solution would be to say that tensorflow should support `__array_interface__`, and an...
On passing it tf.reshape throws: ``` Attempt to convert a value () with an unsupported type () to a Tensor. ```
This pull request adds initial support for [VTF](https://developer.valvesoftware.com/wiki/Valve_Texture_Format) image format Changes proposed in this pull request: * Add support for Valve Texture Format images
I installed pillow correctly. But when I try to import Pillow in VScode it says module not found. But if I change the interpreter from 3.10.5 to 3.9.13 the error...