pillow v1.1.6.b2 Release Notes
-
➕ Added experimental "floodfill" function to the ImageDraw module (based on code by Eric Raymond).
0️⃣ The default arguments for "frombuffer" doesn't match "fromstring" and the documentation; this is a bug, and will most likely be fixed in a future version. In this release, PIL prints a warning message instead. To silence the warning, change any calls of the form "frombuffer(mode, size, data)" to::
frombuffer(mode, size, data, "raw", mode, 0, 1)
➕ Added "fromarray" function, which takes an object implementing the NumPy array interface and creates a PIL Image from it. (from Travis Oliphant).
Added NumPy array interface support (array_interface) to the Image class (based on code by Travis Oliphant).
This allows you to easily convert between PIL image memories and NumPy arrays::
import numpy, Image im = Image.open('hopper.jpg') a = numpy.asarray(im) # a is readonly im = Image.fromarray(a)
- 🛠 Fixed CMYK polarity for JPEG images, by treating all images as "Adobe CMYK" images. (thanks to Cesare Leonardi and Kevin Cazabon for samples, debugging, and patches).