Skip to content

Commit f205a45

Browse files
committed
Added release notes for #8330
1 parent 98e74fd commit f205a45

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/releasenotes/11.2.0.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,28 @@ DXT5, BC2, BC3 and BC5 are supported::
8181
Other Changes
8282
=============
8383

84+
Arrow support
85+
^^^^^^^^^^^^^
86+
87+
`Arrow <https://arrow.apache.org/>`__ is an in-memory data exchange format that is the
88+
spiritual successor to the NumPy array interface. It provides for zero-copy access to
89+
columnar data, which in our case is ``Image`` data.
90+
91+
To create an image with zero-copy shared memory from an object exporting the
92+
arrow_c_array interface protocol::
93+
94+
from PIL import Image
95+
import pyarrow as pa
96+
arr = pa.array([0]*(5*5*4), type=pa.uint8())
97+
im = Image.fromarrow(arr, 'RGBA', (5, 5))
98+
99+
Pillow images can also be converted to Arrow objects::
100+
101+
from PIL import Image
102+
import pyarrow as pa
103+
im = Image.open('hopper.jpg')
104+
arr = pa.array(im)
105+
84106
Reading and writing AVIF images
85107
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86108

0 commit comments

Comments
 (0)