Skip to content

Commit bb22ec2

Browse files
committed
write_png fix!
1 parent fd855a2 commit bb22ec2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

folium/utilities.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ def write_png(array):
324324
frame = array_full[:,:,component]
325325
array_full[:,:,component] = (frame / frame.max() * 255)
326326
array_full = array_full.astype('uint8')
327-
width, height = array_full.shape[:2]
328-
327+
height, width = array_full.shape[:2]
328+
array_full = np.flipud(array_full)
329+
329330
array_full = array_full.tobytes()
330331

331332
# reverse the vertical line order and add null bytes at the start

0 commit comments

Comments
 (0)