We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 792d334 + bb22ec2 commit 0af50c2Copy full SHA for 0af50c2
folium/utilities.py
@@ -364,8 +364,9 @@ def write_png(array):
364
frame = array_full[:, :, component]
365
array_full[:, :, component] = (frame / frame.max() * 255)
366
array_full = array_full.astype('uint8')
367
- width, height = array_full.shape[:2]
368
-
+ height, width = array_full.shape[:2]
+ array_full = np.flipud(array_full)
369
+
370
array_full = array_full.tobytes()
371
372
# Reverse the vertical line order and add null bytes at the start.
0 commit comments