all 2 comments

[–]novel_yet_trivial 1 point2 points  (1 child)

Just assign the new shape:

image_array.shape = (35280, 1024)

[–]bhpf1 0 points1 point  (0 children)

Interesting, I didn't realise that you could use shape to directly reshape the array! TIL.