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
Traceback (most recent call last):
...
File "...\scratches\scratch.py", line 26, in
wmr = wm.resize(img_size, Resampling.LANCZOS)
File "...\anaconda3\envs\dev\lib\site-packages\PIL\Image.py", line 2297, in resize
if self.size == size and box == (0, 0) + self.size:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Activity
radarhere commentedon Jul 10, 2024
Hi. This is a duplicate of #8195
We weren't testing for users who used NumPy and
resize()in this way. The next version of Pillow will have that functionality again, thanks to #8201.In the meantime,
wm.resize(tuple(img_size), Resampling.LANCZOS)should fix your problem.mucmch commentedon Jul 10, 2024
Thanks for the quick feedback and sorry for the duplicate.