Skip to content

Commit b6dd552

Browse files
authored
Merge pull request #580 from cgohlke/patch-1
Fix AttributeError with Pillow >= 10.0
2 parents 231f40a + ba032b6 commit b6dd552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/basemap/src/mpl_toolkits/basemap/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4075,7 +4075,7 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
40754075
w, h = pilImage.size
40764076
width = int(np.round(w*scale))
40774077
height = int(np.round(h*scale))
4078-
pilImage = pilImage.resize((width,height),Image.ANTIALIAS)
4078+
pilImage = pilImage.resize((width,height),Image.LANCZOS)
40794079
# orientation of arrays returned by pil_to_array changed in
40804080
# matplotlib 1.2 (https://github.com/matplotlib/matplotlib/pull/616)
40814081
self._bm_rgba = pil_to_array(pilImage)[::-1,:]

0 commit comments

Comments
 (0)