Skip to content

Commit 0cfa4f7

Browse files
committed
derp.tobytes()
1 parent b6bc1ad commit 0cfa4f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

folium/utilities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ def write_png(array):
308308
array = array.astype('uint8')
309309
array = np.squeeze(array)
310310
width, height = array.shape[:2]
311+
312+
array = array.tobytes()
311313

312314
# reverse the vertical line order and add null bytes at the start
313315
width_byte_4 = width * 4

0 commit comments

Comments
 (0)