imageio is saving my jpg images upside down

0

I am using imageio to save jpg images, however, they are flipped (upside down).

imageio.imwrite(jpgfn, imagedata)

Searches suggest that the correct thing to do is use imageio.Writer (https://imageio.readthedocs.io/en/stable/userapi.html#imageio.core.format.Writer), which allows for the saving of metadata. Can anyone point to an example or provide usable code below? An additional problem is that I am generating the image data de novo, so I do not have existing metadata to copy/transfer.

starfish

Posted 2019-03-27T16:31:34.427

Reputation: 1

No answers