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.
1 parent fd855a2 commit bb22ec2Copy full SHA for bb22ec2
folium/utilities.py
@@ -324,8 +324,9 @@ def write_png(array):
324
frame = array_full[:,:,component]
325
array_full[:,:,component] = (frame / frame.max() * 255)
326
array_full = array_full.astype('uint8')
327
- width, height = array_full.shape[:2]
328
-
+ height, width = array_full.shape[:2]
+ array_full = np.flipud(array_full)
329
+
330
array_full = array_full.tobytes()
331
332
# reverse the vertical line order and add null bytes at the start
0 commit comments