You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can reproduce with Pillow 9.0.0 but no error with current main:
Python 3.10.2 (v3.10.2:a58ebcc701, Jan 13 2022, 14:50:16) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> fromPILimport Image
>>> import numpy as np
>>>
>>> a = np.empty((496, 0), dtype=np.uint8)
>>> b = Image.fromarray(a)
>>> c = np.asarray(b)
>>> c
array([], shape=(496, 0), dtype=uint8)
>>>
PIL version: 8.4.0
NumPy version: 1.21.2
The text was updated successfully, but these errors were encountered: